Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DOS question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00722499
Message ID:
00722547
Vues:
15
Hi Eric,

Thanks for the response.

I must not have explained my situation very well as the solution you described is the exact opposite of my problem. I know how to change the FoxPro default directory, it's the DOS session directory I was stumped with. Oh well.

Now that I think of it, I'll just create shortcuts for all the DOS applications I'm running and set their working directories there.

Just call me the king of kludges!

Hugh

>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
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform