Computing.Net > Forums > Windows 3.1 > Making DOS open a program at promt

Making DOS open a program at promt

Reply to Message Icon

Original Message
Name: NLAB400-11
Date: June 8, 2005 at 16:47:41 Pacific
Subject: Making DOS open a program at promt
OS: WINDOWS 3.1
CPU/Ram: 50mhz/32MB
Comment:

I need help with my DOS 6.2! I want to make a program called M1.exe located in a directory to open using the command C:\M1
How can I do this?
I would appreciate for help.


Report Offensive Message For Removal

Response Number 1
Name: jboy
Date: June 8, 2005 at 17:00:44 Pacific
Subject: Making DOS open a program at promt
Reply: (edit)

Is this a problem? As written, the program would need to be in the root of c: so that

c:\m1

launches it. If it's elsewhere, you would have to include the full pathname when invoking the command or else have the program's location in your PATH statement

Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


Report Offensive Follow Up For Removal

Response Number 2
Name: T-R-A
Date: June 8, 2005 at 17:22:09 Pacific
Subject: Making DOS open a program at promt
Reply: (edit)

Or write a batch file at the root that would dig down into the directory and launch it

i.e:

If M1.exe is located in C:\somedir, then the batch file (m1.bat) should be:

CD somedir
M1.exe

(you could get by with just "M1" in the 2nd line)

Then you could execute the M1.bat file from the root.


Report Offensive Follow Up For Removal

Response Number 3
Name: jboy
Date: June 8, 2005 at 17:45:48 Pacific
Subject: Making DOS open a program at promt
Reply: (edit)

So many ways - invoking a program from the command line is pretty much the cornerstone of DOS, so it kind of defies belief that this is a stumbling block.

Perhaps there is more to the question than has been stated

Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


Report Offensive Follow Up For Removal

Response Number 4
Name: T-R-A
Date: June 8, 2005 at 22:43:35 Pacific
Subject: Making DOS open a program at promt
Reply: (edit)

"Perhaps there is more to the question than has been stated"

Indeed...


Report Offensive Follow Up For Removal

Response Number 5
Name: SkipCox
Date: June 9, 2005 at 13:53:51 Pacific
Subject: Making DOS open a program at promt
Reply: (edit)

If the directory where M1.exe is located is specified in the path statement, then all is needed at the end of autoexec.bat is:

M1

If not, I'd use

cd\
cd name of directory where M1.exe lives
M1

Or did I misunderstand the question?

Skip


Report Offensive Follow Up For Removal


Response Number 6
Name: dos
Date: June 12, 2005 at 15:24:28 Pacific
Subject: Making DOS open a program at promt
Reply: (edit)

try at the c:\ promot cd\m1\m1


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Making DOS open a program at promt

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software