Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run batch file
Message
From
23/09/2002 23:04:45
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00703275
Message ID:
00703634
Views:
15
Hi Ed Rauh,

Thanks a lot. But it doesn't work with a DOS-Batch file.
Also, I tried using shellexecute() with "\\servername\volume\path\batch filename" and it worked. Any idea why it didn't work with "\path\batch filename"?

P.S.: The PCs are using non-standard Windows NT 4.0.

:) Wilfred

>>I tried. It seems it doesn't accept long path name.
>>e.g. run "\prj\testing long path\test.bat"
>>
>>Thanks, Wilfred
>>
>>>Why don't you use the RUN command?
>>>
>>>>Dear all,
>>>>
>>>>I'm trying to run an external batch file with the following code
>>>>
>>>>nRet = shellexecute(FindWindow( 0, _SCREEN.CAPTION),"open",{Batch file},"","",1)
>>>>
>
>You might try using API_APPRUN (downloadable from the Download section of UT) - it supports execution of batch files both synchronously and asynchronously, as well as supporting LFNs.
>
>>>>But it failed in some workstations (NT 4.0).
>>>>Any ideas? Or alternatives?
>>>>
>>>>Thank you, Wilfred
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform