Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run command
Message
From
12/10/2001 12:37:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/10/2001 12:29:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00567722
Message ID:
00567739
Views:
23
>>>Is there a way to keep the DOS window from appearing wher exicuting the run command?
>>Steven,
>>Use shellexecute instead.
>>Cetin
>ie:
>
>
declare long ShellExecute in "shell32.dll" ;
>	long hwnd, string lpszOp, ;
>	string lpszFile, string lpszParams, ;
>    string lpszDir, long nShowCmd
>
>ShellExecute(0,'','c:\fpd26\foxprox.exe','mytest.prg','c:\fpd26',0)
>
VFP calling FoxDOS which in turn runs a prg silent.
>Cetin
Steven,
But beware this creates an independent task which means you'd get control back before it finishes (like nowait in run).

ie : Other prog is doing this :

start = datetime()
do while datetime()-start < 60*120 && 120 mins
* do nothing
enddo

You call it with shellexecute and continue to work on your app immediately. It runs as a separate task for 2 hrs.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform