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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.EXE file questions..

Status
Not open for further replies.

keeyean

MIS
Sep 29, 2001
32
0
0
US
i have 2 questions regarding make project to .exe file

1.before i make my project to .EXE file.. the file size is 1.02M.. but after i made it to exe file, the file size change to 1.7M.. is that normal??

2. how do i save the exe file into 2 disks?? or how do i minimize the exe file??
 
1.) Compiling code *usually* makes the result bigger.
2.) Use a file compression utility like WinZip ( to compress the file. You should easily be able to compress 1.7MB to fit on a floppy. Nate Gagne
nathan.gagne@verizon.net
AKA Nick Burns - Your Company's Computer Guy
"Would you like me to save your game of Minesweeper first?"

Like my post? Let me know it was helpful!
 
what if i don't want to zip the file.. how do i save into 2 disk??
 
This is the ackward way to split "MyFile.exe" into two files....[tt]

OrgFile$="MyFile.exe"
ff = FreeFile
Open OrgFile$ For Binary As #ff
FirstSplit$ = String$(LOF(ff) \ 2, 0)
SecondSplit$ = String$(LOF(ff) - Len(FirstSplit$), 0)
Get #ff, 1, FirstSplit$
Get #ff, , SecondSplit$
Close #1
ff = FreeFile
Open "MyFile.1st" For Binary As #ff
Put #ff, 1, FirstSplit$
Close #ff
ff = FreeFile
Open "MyFile.2nd" For Binary As #ff
Put #ff, 1, SecondSplit$
Close #ff
FirstSplit$ = ""
SecondSplit$ = ""
[/tt]

Create "MyFile.exe" from the two files splits....
[tt]
NewFile$ = "MyNewFile.exe"
ff = FreeFile
Open "MyFile.1st" For Binary As #ff
FirstSplit$ = String$(LOF(ff), 0)
Get #ff, 1, FirstSplit$
Close #ff
ff = FreeFile
Open "MyFile.2nd" For Binary As #ff
SecondSplit$ = String$(LOF(ff), 0)
Get #ff, 1, SecondSplit$
Close #ff
ff = FreeFile
Open NewFile$ For Binary As #ff
Put #ff, 1, FirstSplit$
Put #ff, , SecondSplit$
Close #ff
FirstSplit$ = ""
SecondSplit$ = ""
[/tt]


...a better way would be to allow the PDW to split a huge executable into multiple cabs. Do you see where I'm heading with this?
VCA.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top