Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run Command doesn't work when run from a CD program
Message
De
10/09/1999 14:04:23
 
 
À
10/09/1999 07:30:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00263287
Message ID:
00263451
Vues:
14
>RUN Command doesn't work when run from a program on a CD.
>But it works find from the same program started from the HD.
> I have a CD Demo program which is supposed to start an Exe file using the Vfoxpro Run command. But everytime I run it from a CD I get the 1405 RUN Error.

Is this another VFP app? If so, and you haven't taken steps to point the temporary file directory to somewhere you can both read and write, you're probably getting caught by the default behavior for a VFP executable with no instructions about where to plqce its working files. VFP defaults to using the directory where the executable is. Try adding a CONFIG.FPW with the line TMPFILES = C:\TEMP, and make sure that this directory exists before the app starts. If there is no FOXUSER file in the CD directory, and CONFIG.FPW does contain RESOURCE=OFF, that'll make a VFP app fail, too, since it will try to make a new FOXUSER.DBF and .FPT otherwise.


> I have tried everything I can think of like Setting the Path, Default directory to both the exe file directory and command.com.
> I have tried so many variations that I'm beginning to believe that this is a bug of some kind. It seems that now matter what the Run command is trying to start, if my main program which contains the Run command is on the CD, then it won't work.
> Any Ideas... I'm all out.. Regards, John jfo@public.hz.zj.cn
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform