Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DOS question
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
DOS question
Miscellaneous
Thread ID:
00722499
Message ID:
00722499
Views:
37
Hi all,

I have an application that is written in FoxPro DOS 2.6 that I am refurbishing to run under VFP 7 Windows 98 & Win2K.

In the old DOS application there were numerous calls to other DOS applications preceeded by commands like:

cd f:\applicat\testfox

to change the default DOS directory.

In the new application, changing the default directory has no effect (I assume) because there is no *one* DOS session.

So the old code (when run in the new application) changes the default directory then goes away then the next line runs a DOS application in a new DOS session which expects the previously set default DOS directory -but the directory previously set was set in a different session. (At least I think that is what is happening.)

So the question is:

Is there a way for me to set a "global default" DOS directory under Win98 & Win2K that will work with all subsequently called DOS sessions? Or do I need to wrap my calls to the various DOS applications that expect a certain
"default" DOS directory setting in a batch file that first sets the default DOS directory then runs the application then goes away?

Obviously I'm looking for a cheat here. I don't want to have to write a couple of dozen batch files (if I can help it).

Thanks in advance for any help or direction you can give me.

Hugh
Microsoft hears loudest what the VFP community says about Visual FoxPro by looking at the bottom line!

Support the product. Buy the latest version!

Hugh Winters @ WorldData 408-512-1131
Next
Reply
Map
View

Click here to load this message in the networking platform