Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Windows (https://www.askmehelpdesk.com/forumdisplay.php?f=237)
-   -   How to make autorun.inf so when USB drive connects it will execute (https://www.askmehelpdesk.com/showthread.php?t=377287)

  • Jul 19, 2009, 06:03 AM
    Idrees
    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.
  • Jul 19, 2009, 08:06 AM
    NeedKarma
    Here your answer.
  • Feb 19, 2011, 06:19 AM
    ken23
    [autorun]
    shell\open\command=calc.exe

    just try it

  • All times are GMT -7. The time now is 06:16 PM.