Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6: Error running EXE
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00590069
Message ID:
00590120
Views:
31
>>>I have a very simple program that copies some files from a CD to the hard drive. I have compiled it into a EXE and I am getting an error with the message being: DO D:\mydir\myexe.exe. I only get the error when I try to run the EXE on the CD. If I copy it to the C: drive then it works. I added a CONFIG.FPW with a RESOURCE = OFF and I still get the error. Any ideas? TIA!
>>
>>You haven't specified a temporary directory, so VFP is trying to use the Startup directory on the CD for it's temporary files. Try pointing TMPFILES to a local hard drive location (while you can be reasonably sure that C:\ will exist, it's not safe or smart to use the root of a drive, which can only support a limited number of file entries in some file systems) - perhaps your setup can ensure that a C:\MYTEMP always will exist, and then add the entry
>>
>>TMPFILES=C:\MYTEMP\
>>
>>to the CONFIG.FPW
>
>Actually, I did add a config.fpw with tmpfile = c:\ plus the *work commands and I still get the error.
>

I think that, much like the DOS CONFIG.SYS, CONFIG.FPW is space-sensitive. More importantly, if you use a FAT volume, the root can contain only a fixed number of file entries, with each file in the root occupying at least one entry.

>The problem is copying a file from the CD to the hard drive and they already exists then I get an error "Cannot Create File." I guess I will have to delete the file(s) if they already exists.

The problem here is that files copied from a CD are inherently marked as ReadOnly; change the File Attribute to Normal and SET SAFETY OFF and you'd be fine.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform