Jump to content
MelvinHAAAN

autorun from USB

Recommended Posts

MelvinHAAAN

Hello guys, im doing a little project and i'm new here. I make a batch file that change the desktop background when you start up the computer. Now i want the batch file on my USB and when i plugg the usb in a computer the batch file run automatically from the USB. So how can i run the batchfile automatically from the USB? Somebody have a .autoit3 or batch script?

 

Melvin. ;)

Share this post


Link to post
Share on other sites
BetaLeaf

Window by default doesn't allow AutoRun to function on usb drives. This is for obviously security reasons, something you seem to be trying to bypass.

However, it is possible to change the desktop background in AutoIt. See LINK.


False Positive Reporter - Mass email all anti virus vendors with an attachment of your program for fast and easy whitelisting.

My GitHub Page: https://github.com/BetaLeaf

Share this post


Link to post
Share on other sites
Crash

A long time ago, Windows allow a file called autorun.inf to tell Windows which file to run automatically; this is EXACTLY what you asked for. Insert, say, an installation disc, and Windows will run the correct install.exe, because autorun.inf tells Windows which file to run.

Then, malware came along and used this to their advantage. They tell Windows to automatically run themselves when USB is plugged into another computer, thus they spread that way. If you hear about autorun malware, this is what they meant.

As BetaLeaf said, Microsoft appeared to have reconsidered this and turned it off by default now. You can still turn on autorun manually, and autorun.inf would still work, but on most modern computers, it wouldn't.

  • Like 1

JPGRARMouse Lock | My website | Thanks so much for your help! ❤️

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×