Log in

View Full Version : How to make autorun.inf so when USB drive connects it will execute


Idrees
Jul 19, 2009, 06:03 AM
I want to make an autorun.inf file. It should run a batch file or any application. I tried it the same way it is in CD. But it didn't work in USB drive. I've experienced that some viruses write autorun.inf file which in not exactly text but binary.

I put the following lines of code in autorun.inf which is in the root directory of my USB drive

autorun.inf
open=calc.exe

It didn't work, so then I put the following lines of code as well
open=calc.exe
shell\open\calc.exe
useautoplay=1

Still it didn't work

So can anybody please tell me 2 things?

1- Tell me how to make autorun.inf file form my USB drive so that it'll run automatically when I connect it to my windows XP running
computer.
2- If autorun is also binary then how that is made.

If any one can put code here then please do so and if anyone can attach the autorun.inf file then please do that as well.

I'll be very thankful for the reply.

NeedKarma
Jul 19, 2009, 08:06 AM
Here your answer.
(http://www.google.ca/search?hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=I1s&q=create+autorun+file+for+usb&btnG=Search&meta=)

ken23
Feb 19, 2011, 06:19 AM
[autorun]
shell\open\command=calc.exe

just try it