Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run batch file
Message
De
23/09/2002 09:08:33
 
 
À
23/09/2002 06:48:25
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00703275
Message ID:
00703324
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform