Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy file says embedded file does not exist
Message
From
25/10/2001 22:16:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Title:
Copy file says embedded file does not exist
Miscellaneous
Thread ID:
00573487
Message ID:
00573487
Views:
62
I've recently upgraded to VFP 6.0 SP3 or 5 (whatever is the latest one) and my code that used to work to copy an embedded binary file from within my exe to the users's local hard disk no longer works. Here's the simple code:

myexedir=left(sys(16),rat("\",sys(16)))
testfile1=myexedir+"mypref.mgk"
if file(testfile1)

* this code says "file mypref.mgk does not exist although file said it existed earlier and it is embedded in the exe - checked the project file and made sure that it was included)

copy file (testfile1) to ("c:\thefinal.mgk")
endif

Anyone have any ideas? I need help on this one ASAP - seems to be the only bug I have in the move from VFP 3 to 6.

From: Ed Johnson
Next
Reply
Map
View

Click here to load this message in the networking platform