Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wscript.Shell Run failing
Message
From
01/03/2012 10:24:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Wscript.Shell Run failing
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01536940
Message ID:
01536940
Views:
92
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
Next
Reply
Map
View

Click here to load this message in the networking platform