Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

files included in project 1

Status
Not open for further replies.

JimmyK

Programmer
Sep 8, 2000
142
VN
Hi all,
I include a bitmap (test.bmp) file in my project, say MYPROJ
i build it to EXE, say MYPROJ.EXE
How can i copy this bitmap file to hard disk while running EXE?

The command
copy test.bmp to c:\test2.bmp
cause an error say : File test.bmp does not exist!

How can i work around this problem?

Thanks

Jimmy Le
nhan_tiags@yahoo.com
 
Hi Jimmy Le,

I am seeing you here after almost over 6 to 8 months. Welcome back!

Instead of including it in the project, can you think of saving it in a Fields General Field and then save it to harddisk?. May be that is easier. It depends on the size.

:)
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
JimmyK

If you include the bitmap in your project, it means it only exists in a compiled verion, not an actual bitmap. I would try what Ramani suggests. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Thank you all,
Maybe i have to do so because there is no other way!

Ramani, i will be seeing you more often in this forum, thanks once again.

Jimmy
Jimmy Le
nhan_tiags@yahoo.com
 
Jimmy Le,
I use this routine to extract files included in a project:
Code:
** cute kludge complements Vlad Grynchyshyn on the UT **
CREATE CURSOR ttt (ttt M)
APPEND BLANK
APPEND MEMO ttt.ttt FROM test.bmp
lcSvSafety = SET("SAFETY")
SET SAFETY OFF
COPY MEMO ttt.ttt to c:\test2.bmp
IF lcSvSafety <> &quot;OFF&quot;
   SET SAFETY ON
ENDIF
use in ttt
Note it is important that the internal file not match the external file's name (as you were already doing!).

Rick
 
Thank you very much, Rick! Jimmy Le
nhan_tiags@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top