Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DOS question
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00722499
Message ID:
00722525
Views:
13
lcDir = curdir()

*!* Do whatever the heck you want here...

set default to (lcDir)

*!* Or

cd (lcDir)

*!* Carry on, no worries...


>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
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform