Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RUN/! Command Fail
Message
From
03/01/2002 06:29:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00600074
Message ID:
00600170
Views:
15
>This happens only from a CD-ROM.
>
>I prepared a forms with some options incluted on the distribution CD on my application. I need to call some freewares programs, everything works fine form my hard drive.
>
>This is the code:
>
>mrutap= FULLPATH(CURDIR()) &&Return current Disk and directory--> WORKS FINE
>
>RUN &mrutap\freewares\dir1\filename.exe
>
>Thanks!

Macro expansion (&) combined with filenames / dirnames will often fail if the file or directory name contains spaces.

Placing the entire path into the variable seems safer to me. Thus:
mrutap = fullpath("") + \freewares\dir1\filename.exe
run &mrutap
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform