Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run Command
Message
 
To
20/02/2004 11:07:53
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00879199
Message ID:
00879295
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform