[Ham-Computers] Need DOS help
WA5CAB at cs.com
WA5CAB at cs.com
Mon Jun 1 15:11:03 EDT 2009
First, you must use the back slash "\", not the forward slash "/". Second,
the space in "all tests" is not allowed in most DOS versions. You can
either write it "alltests" or use a hyphen or an underscore.
I presume that you mean add...to the bottom - of the file AUTOEXEC.BAT. If
so, the answer is yes, that would work after fixing what I mentioned above.
But the PATH statement is destructive. Meaning that whatever your
AUTOEXEC.BAT file normally sets the path to will go away and be replaced by what
you wrote. That may or not matter to the program TESTA.EXE or to whatever
else you might want to do if you exit that program. But in general, you would
probably be better off to add your path statement to the existing one.
Then it won't matter.
Or, the single line:
A:\Newfolder\alltests\testa
may accomplish the same results without editing the PATH statement but it
could depend on what's in the program (if it calls or tries to open something
else in that folder).
Another way to do it is:
A:\ (probably redundant)
CD Newfolder\alltests
testa
In a message dated 6/1/2009 1:40:59 PM Central Daylight Time,
JJan-3 at cox.net writes:
> I want to add code to a bootable DOS disk so a program in a folder is
> automatically run when the disk is used. For example, suppose I add
> a folder called Newfolder, and this folder has a subfolder called
> alltests, which contains a file called testa.exe
>
> Should I add the following two lines to the bottom? My DOS knowledge
> is mostly forgotten.
>
> Path = A:/Newfolder/all tests
> testa
>
Robert Downs - Houston
wa5cab dot com (Web Store)
MVPA 9480
More information about the Ham-Computers
mailing list