WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-18-2004, 03:19 AM
info107 info107 is offline
WebProWorld Member
 

Join Date: Aug 2003
Posts: 35
info107 RepRank 0
Default .EXE files?

Could someone help me with my question:

I need to put some files on CD for my presentation.
Usually when you put CD in CD drive, file (presentation) opens itself.
I am, obviously, not a pro but I understand that these is a program which does it.

How difficult to make (write a program) an executable file (.exe) to have the same thing happen?

Thank you for your help.
Reply With Quote
  #2 (permalink)  
Old 01-18-2004, 05:47 AM
Corey Bryant Corey Bryant is offline
WebProWorld Veteran
 

Join Date: Nov 2003
Location: Castle Rock, CO
Posts: 494
Corey Bryant RepRank 0
Default

First copy the "start.exe" file from your c:\windows\command directory to your CD-ROM. then use

[autorun]
open=start.exe index.html

One disadvantage of this method is that it will display a transient DOS window before the default browser fires up.

Try this in an autorun.inf file:
[autorun]
OPEN=Start \README.htm
ICON=SC.ICO

If that one does not work, you can try this one:
You will need to create two files. An Autorun file and and a batch file. Autorun files will only open up executables. Since an html document is not an executable you need the batch file to start the web browser.
This is what I usually use:
This is the autorun file (named autorun.inf):
[autorun]
OPEN=start.bat
ICON=fav.ico,0

(** fav.ico is just the name of the icon I have also saved on the CD.)

This is what I have for the .bat file (named start.bat):
start index.html
exit

Here are some other suggestions as well:

http://www.dummysoftware.com/cdstart.htm
http://www.whirlywiryweb.com/q/shellexe.asp
http://duckware.com/winopen.html
http://www.win-software.com/catalog/run1.htm
http://www.frontlook.com/flmm/mediamaker.asp
Reply With Quote
  #3 (permalink)  
Old 01-18-2004, 07:29 AM
paulhiles's Avatar
paulhiles paulhiles is offline
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Hi info107,

You didn't specify what type of 'files' you're going to put onto this CD. Are they HTML files? or have you made a presentation in PowerPoint?

The autorun command needs to know the name of the application/exe file in order to run it... and whether it were PowerPoint or Explorer, if the host machine didn't have the program installed the CD would not load properly.

Corey had some excellent suggestions above, I'd like to add a couple more links that have covered the same issue here at WPW!

Emergency! Assistance needed!
http://www.webproworld.com/viewtopic...hlight=autorun

Making an autorun.inf file that works for Windows XP
http://www.webproworld.com/viewtopic.php?p=5754

If you think you're going to be doing this on a regular basis, it may be worth investing in a package that does it all for you! Just a thought! :o)

I'd like to hear how you get on with this, and what your preferred option is!

Good luck,

Paul
Reply With Quote
  #4 (permalink)  
Old 01-19-2004, 03:54 AM
info107 info107 is offline
WebProWorld Member
 

Join Date: Aug 2003
Posts: 35
info107 RepRank 0
Default Thanks!

Thank you for your help!

I don't understand one thing:

Quote:
"Try this in an autorun.inf file:
[autorun]
OPEN=Start \README.htm
ICON=SC.ICO
(SC.ICO is just the name of the icon I have also saved on the CD.)"
How do I make this icon? with this extention...what program should I use?

See you:)
Reply With Quote
  #5 (permalink)  
Old 01-19-2004, 07:39 AM
Corey Bryant Corey Bryant is offline
WebProWorld Veteran
 

Join Date: Nov 2003
Location: Castle Rock, CO
Posts: 494
Corey Bryant RepRank 0
Default

You can use this website: http://www.favicon.co.uk/
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: exe, files



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Search Engine Friendly URLs by vBSEO 3.0.0