Ask Experts Questions for FREE Help !
Ask
    Idrees's Avatar
    Idrees Posts: 52, Reputation: 3
    Junior Member
     
    #1

    Jul 19, 2009, 06:03 AM
    How to make autorun.inf so when USB drive connects it will execute
    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's Avatar
    NeedKarma Posts: 10,635, Reputation: 1706
    Uber Member
     
    #2

    Jul 19, 2009, 08:06 AM
    Here your answer.
    ken23's Avatar
    ken23 Posts: 1, Reputation: 1
    New Member
     
    #3

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

    just try it

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Auto.exe and autorun.inf [ 5 Answers ]

I accidentally deleted both auto.exe and autorun.inf in my drive C, since both were detected as virus. But after doing so, my drive C can not be opened anymore... I can not restore the deleted files anymore despite doing "system restore" What to do now? Help...

Did Chevy make a C10 that is 4 wheel drive? [ 2 Answers ]

I recently bought a 1978 Chevy C10 that is 4 wheel drive. I was told it was completely stock. I have since read that the C10's were all 2 wheel drive and the K10's were 4 wheel drive. What's the deal? Thanks!

Autorun dialog [ 9 Answers ]

Why every time I insert some devices into my laptop USB port, Autorun dialog did not pops up ? :mad: How to enable it ? :confused:

How do I make my hard drive to show in my computer [ 2 Answers ]

:( I have a problem with my hard drive, secon hard drive I connected as slave it shows up in device manager but not in disk management and it also shows up in the bios, any help


View more questions Search