I noticed that if I want to run an EXE program that is NOT in the current folder, Estex changes the current folder for you. The bad news is that DSS function CURDIR returns the current directory of the EXE, instead of the directory where I wanted the EXE to run.
For example: I have C:\DOS\COPY.EXE, and I want to copy C:\DATA\DOCU.TXT to C:\DATA\TEXT\DOCU.TEXT.
If I change folder to C:\DATA and I type C:\DOS\COPY DOCU.TXT C:\DATA\TEXT\DOCU.TXT, I get a "File not found" because Estex changed to C:\DOS to find COPY.EXE, and therefore it can NOT find C:\DOS\DOCU.TXT (not to mention the pretended destination folder C:\DOS\TEXT!!!).
The command must be issued like:
C:\DOS\COPY C:\DATA\DOCU.TXT C:\DATA\TEXT\DOCU.TXT
or, standing in C:\DOS:
COPY C:\DATA\DOCU.TXT C:\DATA\TEXT\DOCU.TXT
Is there a way to avoid this, or to get the current folder BEFORE Estex changes it?
Marcelo.
----------------------------------
Speccy rules, its staff is Sprinter.
|