Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run command
Message
De
12/10/2001 12:37:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
12/10/2001 12:29:30
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00567722
Message ID:
00567739
Vues:
24
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform