Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dos BAT file Question
Message
 
To
12/04/1999 19:56:21
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00207637
Message ID:
00207670
Views:
22
>Hello guys, I have the following question
>
>I am using The Process class to initiate a BAT file, that I created using VFP, the BAT name changes everytime.
>Now the Class has a routine that will check whether the DOS box has finish or not doing it stuff. But it happens that with my BAT I does not change the value of that exitcode, until I manually close the DOS box and then the value changes.
>
>I know that by going into WExplorer and right clicking the properties related with that BAT file, I can choose the "Close on Exit" propertie s but that would only apply to that specific name.bat file.
>
>Is there a way that I can enable that property at run command?
>
>Aie:
>batchprogram.bat some keys
>
>
>TIA
>
>Mark Oliva

Use shellexecute from the Win32 api. There are samples here and I posted a modified version of the class that ships with VFP 6.0 which lets you add a fourth argument. This means you can call up MS Word and also tell it to open a specific document. Also, with Shellexecute you won't get the dos box.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform