NewsProductsSprinterSupportDownloadSprinter ForumAbout usLinksSite map Russian site

English
   >> Software programming for the computer Sprinter
Thread views: 44 View all threadsNext thread*Threaded Mode

Marcelo
(stranger )
2002/08/21 15:46
Current Directory Reply to this post

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.



Denis ParinovVIP
(Sprinter Team)
2002/08/21 21:41
Re: Current Directory new [re: Marcelo]Reply to this post

Yes. It's a problem for current version of DSS. When you touch any file, DSS change current directory for it.
We are working for a new version DSS today. This feature also will be corrected.




View all threadsNext thread*Threaded Mode
Jump to