MelvinHAAAN

autorun from USB

3 posts in this topic

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



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.

PortableApps.com App Creation Wizard  - A simple GUI-based Wizard for creating PortableApps.

SoundBoard - Play any song or sound you want at the press of a hotkey.

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

Share this post


Link to post
Share on other sites

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.

1 person likes this

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.