On Sun, 03 Nov 2013 16:57:50 +0100, Bernd Blaauw <bbla...@home.nl> wrote:
> An alternative solution would be to write an individual
> batchfile for each program you'd like to run, and place these batchfiles
> somewhere in C:\DOS or so.
>
> @echo off
> C:
> CD \
> CD PROGRAMS
> CD APPS
> CD MYPROG
> MYPROG.EXE
> CD \

I use a similar solution, but more elegant (IMO). Make a batch file for  
each program in C:\APPS like this:

@PUSHD C:\APPS\PROGRAM
@PROGRAM.EXE
@POPD

This way, you can call it from anywhere without having it change your  
current directory.

BTW, I think it is redundant to have ".;" in your PATH, as DOS always  
searches the current directory first.

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to