INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

AutoRun any file type

How do I by codeone
Posted: 22 Jan 04 (Edited 22 Jan 04)

***************************
 * 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 *
*****************

Back to Javascript FAQ Index
Back to Javascript Forum

My Archive

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close