Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I

AutoRun any file type

How do I

by  codeone  Posted    (Edited  )
***************************
* Autorun any file - By: Code One *
***************************

* Short Introduction
* What do I do?
* Will it work for me?
* Conclusion

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Short Introduction:
---------------------

Well, first you have to understand the DOS commands a bit.
By finding yourself a healthy appitite for DOS you open
many doors that at one time were hidden to you. Such as,
the wonderful world of Batch files, and .COM files, then
further down the learning curve you'll reach assembly and so on.
But, for now that's waiting for you in another tutorial somewhere.
Right now I am going to show you a way to autorun your CD's with
any file type associated to them.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

What do I do?
---------------

Ok, first fire up NotePad.exe. Once it is loaded type the following:

[autorun]
open=start index.htm

Now simply render the file as AUTORUN.INF. Now simply save it to your root directory
and burn the directory including subfolders, files, etc. to a CD-R.

Note:
------
If you use this method, Windows briefly displays a DOS prompt window. Also you should
make sure that START is a command that your DOS version has. You can do this by fireing
up the DOS prompt and typing:

START /?

After you type the above and hit the enter key a description of that command should display,
if it doesn't then you don't have it. So the above autorun command will not work for you.
So if you find yourself START deficiant try the next example.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

[autorun]
shellexecute=index.htm

Again, now simply render the file as AUTORUN.INF. Now simply save it to your root directory
and burn the directory including subfolders, files, etc. to a CD-R.

Note:
------
As long as you are using a recent Window$ version then this command should work. Plus, this
will not show a DOS prompt upon auto load. Therfore, this method may be a more idea choice
for the DOS haters.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Will it work for me?
----------------------

Now who's to say it will work for anyone. Just try it! If it doesn't work for you
then your out what 10 cents. Maybe 20 cents if you try both methods. Big deal right?

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Conclusion:
-------------

Well, that's it I'm out of here. Have fun and good luck!

-Code One



*****************
* Written:1-22-2004 *
*****************
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top