Hi Mary
Is the bat file on the USB Flash Drive and you want that to Autorun, or is that bat file on your PC and you want that to run when any USB flash drive is connected to the PC?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want a BAT file to be executed when a USB plugged in to the PC. How can I do it?
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Hi Mary
Is the bat file on the USB Flash Drive and you want that to Autorun, or is that bat file on your PC and you want that to run when any USB flash drive is connected to the PC?
Hi,
probably you may use Task Scheduler. What USB device are you talkin about?
Hi Mary, unfortunately Windows doesn’t provide an in-built feature to execute a Bat file when a USB is plugged in.