Automatically open file when plugged in

jaguarman

Honorable
Feb 3, 2013
157
0
10,690
i added this WD security to my WD external hard drive and i want my computer to automatically open the wd security.exe when i plug it in so i can simply enter the password. How do i do that?
 


You can do it using the autorun.inf file on the hard drive. In order to be able see the file, first you need to enable hidden files. This is located in control panel ---> Folder options (on the View tab) ---> "Show hidden files and folders"

Before we start editing the autorun file, you will also want to enable autorun on your Windows as it is generally disabled from running files automatically due to the risk of malware. For that just follow these simple steps:
http://www.ehow.com/how_6654279_enable-autorun_inf.html

Then on your WD drive you should already have an autorun file which you can edit with the following, or simply create one if there isn't already one there.

Open Notepad

Type in:

[autorun]
open=security.exe
action=Run Security Program
icon=security.exe
label=WD Security

Save the file as autorun.inf

Put the file in the root/home of your WD external drive

The next time you insert your removable drive into your PC, the specified program will autorun.

http://blog.shankarganesh.com/2007/08/11/how-to-autorun-programs-from-usb-flash-drive/
 

Can't edit the autorun file as the security software rejects the request.
Its fine thanks anyway