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:
00722943
Views:
15
Hi Jon,

I had already finished my batchfile when I opened your post. Here's what I came up with:
@ echo off

rem sf_wrapper.bat
rem global wrapper batch file used to 
rem set the default DOS directory
rem needed by the file referenced in argument 2
rem 
rem VFP Example Code:
rem !command /c "&MyWrapper" c:\rbnscope c:\rbnscope\rdxm_s.bat
rem 
rem Note: Argument 3 is used to pass an argument to the 
rem executable or batch file referenced in argument 2
rem 
rem Note: If not found, this file will automatically be created
rem in the StanFoxPro home directory.
rem 

cd %1

%2 %3
Unfortunately it doesn't work as hoped from VFP. It works from DOS and the Run menu just fine though!!! :)

Hugh


>>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).
>
>Hugh,
>
>Perhaps at runtime you can use the low-level I/O functions create a wrapper batch file. In the first line, write out a CD followed by your directory and then the second line can be the call to launch the Dos app. Then after closing the handle to the batch file, launch it from VFP.
>
>Just a thought.
>
>Laterness,
>Jon
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform