How to Set a Drive Letter With Autorun
Autorun.inf is a file that is run as soon as you insert a CD or DVD into the drive. Autorun is used to set the location of installation files. For some installations, the files may be on a hard drive or another location on the computer. In this case, the designer of the autorun.inf file needs to set the location of the files using the "subst" command. This command points the directory to a new location, which can be another hard drive, CDROM or DVD drive.
Instructions
-
-
1
Open the autorun.inf file with a text editor. For instance, a popular editor for Windows in notepad.exe. You can also create a new autorun.inf file using a text editor.
-
2
Create a folder on the hard drive to test the autorun.inf file. For instance, create a directory called "CD" on the "C" drive. This will be the drive and directory where installation files are located.
-
-
3
Type "subst p: c:\cd" into the autorun.inf file. This creates a temporary drive for the "C:\CD" directory and names it "P." When addressing any file in the "C" directory, you can now use "P" instead.
-
4
Save the file and burn it to a CD. This is done to test the file to ensure it works properly. Once the CDROM is burned with the autorun.inf file, insert it into a CDROM.
-
5
Click the Windows Start button and select "Run." Type "cmd" into the text box. Type "X" in the command prompt. You should now be able to run programs using the X drive as a replacement for the "C:\CD" directory.
-
1