Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run Command
Message
 
À
20/02/2004 11:07:53
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00879199
Message ID:
00879295
Vues:
15
>George,
>
>How do I use your scripting suggestion?

Fairly simple. Instantiate an instance of the Scripting.FileSystemObject. Use its GetFile method to return a file object using the correct long path. Then concatenate the string containing the ShortPath property and issue the Run method.
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
* lcfile is the file including long path name
oFile = oFSO.GetFile(lcfile)
lcCmnd = "C:\ccdraft\bin\ccplot.exe -rk " + oFile.ShortPath
pdm_var.oProcess.Run(lcCmnd, 2, .T.)
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform