Windows closes the format pop-up window when inserting a USB device such as a U disk

insert image description here

foreword

In some automation scenarios that use usb devices, this pop-up window will interfere with the running program and cause the program to fail to run downwards. It needs to be closed to prevent the execution of the process from being affected.

Close the USB pop-up window steps.

1: win+r to open and run, enter services.msc, and click OK

insert image description here

2: Find this service.

insert image description here

3: Right click and select Properties to enter.

insert image description here

4: Change the startup type to: "Disabled", click Apply, and then click OK.

insert image description here

5: Complete the setting and restart to take effect.

Guess you like

Origin blog.csdn.net/weixin_43441262/article/details/129640570