Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run Command
Message
 
To
30/01/2003 14:17:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00747316
Message ID:
00747343
Views:
10
I would recommend to avoid using RUN. There are situations when it does not work, and it is hard to find the cause. Try shellexec or winexec API instead. Something like:
DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
?ShellExecute(0,"open",fullpath("btest.bat"),"","",1)


>Any ideas why This won't work:
>Set Default To "\\gvmain\applications\foxapps\acltsupport\aclthold"
>Run /N2 btest.bat
>
>but this will:
>
>Set Default To "g:\foxapps\acltsupport\aclthold"
>Run /N2 btest.bat
Previous
Reply
Map
View

Click here to load this message in the networking platform