InterviewSolution
| 1. |
Solve : batch file on cd to autorund a sellection of programe exe files? |
|
Answer» Hi can anyone help me. I have not written a batch file in a very long time @18 years and never had to do what I now need to do. I am trying to prepare a batch file for burning onto a cd/dvd that will allow me to offer the cd/dvd user a selection of programs to install. I have a code that will make the batch file executable. I suppose I am trying to product a file much like you will see on the free cd/dvd's given out with many mags these days. I use xp as my os but the file would have to be capable of executing on almost any windows based system from say 2000 to vista. Is there any one who can help. My request is genuine and I have just had a web site built at www.cadireland.com I am trying to put together a cd/dvd with all of the demo files on it. I am new to this field as you have probably guessed. If anyone knows of an business who could write this program for me that would also be an acceptable solution depending on cost and time taken to produce. I really appreciate your help thanks.This could be as elaborate or a simple as you want. I use xp as my os but the file would have to be capable of executing on almost any windows based system from say 2000 to vista Choice is not installed on WinNT machines only Win9x (yes, they are still out there) although I hear they brought it back from the dead for Vista. You may have to query what OS the user is running and write another segment of code for WinNT, Win2000, and WinXP USERS that will use set /p Quote Again my problem is how to tie all of these together Provided the compiled version of the batch file is NAMED master.exe, everything is tied together. Be sure to put the exe and the jpg icon in the root directory of the CD. Each of the support files for each selection can be in their own directory, but use relative paths as the CD drive letter will be different on different machines. Quote still show a welcome message and disclaimer and if possible a little bit of artwork Forget the artwork. Batch files are text only and do not support graphics. You could create a splash screen with multiple echo commands and use ping to leave visible for say 5 seconds. If you decide to go with a HTML solution let us know. Note: During testing I used a USB thumb drive which is not supported for autoplay without some smoke and MIRRORS so my autorun.inf was a bit different than yours. The autorun.inf file you posted should work fine for a CD. Hi Sidewinder Sorry for long delay in thanking you for your help with code. It was a neater solution. I decided having looked at the limited nature of the result to write a html code. It has been very difficult and I am only now nearing completion. I did not ask for help as the pages of code were in some cases large and complex although I have through trial and error started to slim all of this down. It turned out to be quite a project linking all the pages of code in a similar manner to a web site. When finished I may publish on these forums the code pages should anyone else like to give it a try or offer some improvements. Once again thank you |
|