Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wscript.Shell Run failing
Message
From
01/03/2012 11:25:50
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01536940
Message ID:
01536955
Views:
41
Right, thanks

>Because of the spaces in the path, it has to be enclosed in double quote
>
>lcCmd = ["C:\Program Files\Samsung\PlayCamera\PlayCamera.exe"]
>...
>
>>I am attempting to launch a camera application, but keep get the following error:
>>
>>"The system cannot find the file specified."
>>
>>I know it is there.
>>
>>
>>lcCmd = "C:\Program Files\Samsung\PlayCamera\PlayCamera.exe"
>>loWSH = CREATEOBJECT("WScript.Shell")
>>loWSH.RUN(lcCmd)
>>
>>
>>I do not want to use RUN because of the DOS window that appears too. Also, I need the foxpro application to wait until the camera window is closed before proceeding.
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform