Useful Tips and Tricks
  • Blog
  • Other
  • windows
  • Linux
  • Powershell
  • Login

Set a program to run automatically (autorun)

10/25/2009

0 Comments

 
Using autorun, you can set a program to start up automatically when you connect the drive to a computer. You can also use the same script for a data CD-ROM. Note that some computers have autorun disabled for security purposes. [Here's how to disable autorun.]

Open up notepad and paste the following script:

[autorun]

ShellExecute=filename

Label=description

UseAutoPlay=1

Make sure you replace filename with the full path to the file. For example, a file called program.exe in a folder called “programs” on the thumb drive would be /programs/program.exe

Replace description with a short description of the program, for example, My Jukebox or Mozilla Firefox.

Save the file as autorun.inf, making sure you select “All Programs” from the save menu, not “Text document”!
0 Comments



Leave a Reply.

    Archives

    September 2013
    May 2013
    April 2012
    January 2012
    November 2011
    September 2011
    June 2011
    April 2011
    November 2010
    October 2010
    December 2009
    October 2009
    May 2009
    February 2009

    Categories

    All
    All
    Backup
    Chat
    Computer
    Fun
    Hack
    Mobile
    Os
    Registry
    Sync
    Usb
    Website
    Windows
    Windows Boot

    RSS Feed

@ Anwar Ahamed Sayed