Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a Modal application
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00202542
Message ID:
00202620
Views:
23
>>I've got a really simple app that I need to be able to call from a batch file. I need the application to be "modal". That is, I need it to finish it's processing before returning control to the batch file. Any ideas on how to do this? This application has no UI.
>>
>>Thanks,
>
>Assuming that you are running under Win9x/NT:
>
>Start /w [/switches]
>
>Will start the application and wait until it is done before returning control to the batch file.
>
>OR
>
>You might want to investigate using AllocConsole () a Windows API, which is what console programs like deltree.exe call so that they don't behave like that. Within your app, AllocConsole () must be called quickly (before the "app-starting mouse cursor" goes away), otherwise it's going to behave like a GUI program anyway. (Hmm, _how_ long does it take your Foxpro App to initialize?)
>
>Rick (with input from my co-worker Jason)

Hmm..OK, that gives me some ideas. I think I might just use a simple file-based semaphore lock type of thing. It looks like that might be the simplest way to make sure this works all the time.

Thanks,
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform