Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with RUN command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00390391
Message ID:
00390487
Views:
10
>I need to execute a couple of exe's from within VFP. I get the exe names with
>numfiles = ADIR(prgarray, "G:\phone bill\temp\*.exe")
>fullname = "G:\phone bill\temp" + prgarray(1,1)
>RUN &fullname
>
>I have tried this with and without the &. As the two self extracting exe's have a different name evey month, there is no way to hard code them in
>
>fullname holds the correct name, it SHOULD work, but won't.
>What am I doing wrong?

The following code solved a similar problem I had:

temp = gcDefaultDir+"\REPORTS\ars_1.txt"
RUN /N C:\Program Files\Accessories\WORDPAD.EXE &temp

I had to hardcode the path to the external exe that I wanted to run...
HTH,
JLK
Nebraska Dept of Revenue
Previous
Reply
Map
View

Click here to load this message in the networking platform