Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winexec
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01459546
Message ID:
01459590
Views:
92
>Hi all,
>
>
>I USE winexec to lauch a programm. But i want that VFP Don't continue before the programm is not completed.
>it 's possible with winexec ?
>
>
>DECLARE INTEGER WinExec IN kernel32 STRING  lpCmdLine, INTEGER nCmdShow
>* WinExec ( "G:\BOB\BOBLINK /CIE=BO /USR=BM /MOD=ACCOUNT /MNF=BOACCOUN.DB /AUTOCLOSE" ,  SW_NORMAL )
>*-- Sur le conseil de bOB
>cOldSetDefault = SYS(5) + CURDIR() && SET("Default")
>SET DEFAULT TO ( goapp.cDirBobapp )
>WinExec( m.cValue ,  SW_NORMAL )
>
>
>
>thank in advance
>
>
>bernhart

Use wscript instead. The .t. as the last parameter means it is going to wait until notepad is closed.
WshShell = CreateObject("WScript.Shell")
ReturnCode = WshShell.Run("%windir%\notepad.exe", 1, .t.)
MESSAGEBOX("Done")
Previous
Reply
Map
View

Click here to load this message in the networking platform