Computer Hope

Microsoft => Microsoft DOS => Topic started by: Dark Blade on April 27, 2007, 12:03:47 AM

Title: running programs at start-up
Post by: Dark Blade on April 27, 2007, 12:03:47 AM
I know how to run programs at start up using Command Prompt, but is it possible to make a program that asks the user if they want to open that program?
Title: Re: running programs at start-up
Post by: contrex on April 27, 2007, 12:25:55 AM
If you have Win 95/98/ME you have choice.exe already. If not, download it from one of a zillion places and put it on your PATH somewhere.

look here for some clues...

http://www.google.com/search?source=ig&hl=en&q=download+CHOICE.EXE&meta=

Example code showing how to optionally launch Internet Explorer from a batch file, quitting the batch file without waiting for IE to finish...

Code: [Select]
@echo off
cls
choice /N "Do you want to run Internet Explorer (Y/N) ?"
if errorlevel 2 goto no
if errorlevel 1 goto yes
:yes
start "" "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
:no
exit



Title: Re: running programs at start-up
Post by: WillyW on April 27, 2007, 11:46:19 AM
If you have Win 95/98/ME you have choice.exe already. If not, download it from one of a zillion places and put it on your PATH somewhere.

look here for some clues...

http://www.google.com/search?source=ig&hl=en&q=download+CHOICE.EXE&meta=
...


And here:

http://hp.vector.co.jp/authors/VA007219/dkclonesup/choice.html


Title: Re: running programs at start-up
Post by: Dark Blade on April 27, 2007, 06:47:51 PM
Thanks, it worked.