Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DOS program works differently within VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01242242
Message ID:
01242260
Views:
18
Okay, Borislav, your code was what led me to do this correctly. I only added some double quotes; it didn't like single quotes. The reason for the double quotes was chiefly to handle the long windows file names.

Thank you very much!!!

Here is the code that finally worked based on your suggestion:

This code was inside a SCAN. This is the final code. Notice that the Double Quotes are surrounded by single quotes.
lcParam1=oApp.cImageFolder + "\" + Photos.cFileName
lcParam2=lcPath2PICSFolder
lcParam3=lcImageName
lcCommand=[RUN C:\Dev\GetData\ProcImages.EXE ] + ;
   + '"' + lcParam1 + '"' + [ ] + ;
   + '"' + lcParam2 + '"' + [ ] + ;
   + '"' + lcParam3 + '"'
&lcCommand
Your code, Borislav.
lcParam1=oApp.cImageFolder + "\" + Photos.cFileName
lcParam2=lcPath2PICSFolder
lcParam3=lcImageName
lcCommand = [RUN C:\Dev\ProcessImage\ProcImages.EXE ]+ ;
   lcParam1+[, ]+lcParam2+[, ]+lcParam3
&lcCommand
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform