G
Garry
I have a DOS program that must be run from its directory
and will not accept paths. It is launched by a DOS batch
file. The batch file and the DOS program are in the same
directory. The batch file can be run with a path to the
required directory. When I run the batch file from a
macro with the correct path, the DOS file will not run
because the default directory is the root directory. I
would like to write a macro that will change the DOS
directory to the correct directory then run the batch
file. I can't do a directory change in the batch file
because some of the files for the DOS program have been
pre-set to look for files in a directory designated by the
batch file. Currently I can run the batch file from the
macro, I can run command.com to open a DOS window, but I
can't change the DOS directory THEN run the batch file.
Any help would be appreciated.
TIA,
Garry
and will not accept paths. It is launched by a DOS batch
file. The batch file and the DOS program are in the same
directory. The batch file can be run with a path to the
required directory. When I run the batch file from a
macro with the correct path, the DOS file will not run
because the default directory is the root directory. I
would like to write a macro that will change the DOS
directory to the correct directory then run the batch
file. I can't do a directory change in the batch file
because some of the files for the DOS program have been
pre-set to look for files in a directory designated by the
batch file. Currently I can run the batch file from the
macro, I can run command.com to open a DOS window, but I
can't change the DOS directory THEN run the batch file.
Any help would be appreciated.
TIA,
Garry