Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters in the RUN command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00228421
Message ID:
00228423
Views:
12
Try this:
pgm = 'C:\ftp\des.exe '+ALLTRIM(FileName)
RUN &pgm
>Hi,
>
>I'm trying to use the RUN command using variables into the command line. The external program is a DOS encryption application and I'm trying to do this in VFP5. The result is bad command or file name. If I don't do the substitution it works fine. For example
>
>pgm = 'c:\ftp\des.exe' && this is taken from the .ini file
>filename = 'file.txt' && this is passed into this procedure
>
>RUN allt(pgm) + allt(filename)
>
>Any suggestions or solutions
>
>Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform