PDA

Click to See Complete Forum and Search --> : Changing a file size


XxEvilxX
Jan 11th, 2000, 06:18 AM
changing a file size like if it 250KB i could or make it look like it only 50KB

Bob Baddeley
Jan 11th, 2000, 06:41 AM
Nope. Sorry. There are some things you just can't do. Even if you could, you wouldn't really want to. You could blatently lie on a single program by doing

Dim MySize
MySize = FileLen("TESTFILE") ' Returns file length (bytes).
Text1.Text = MySize / 10, where Text1.Text is the false file size. But you can't make it permanent.

bob

ChrisJackson
Jan 11th, 2000, 06:53 AM
XxEvilxX,

Have you looked into zipping the file?

All the best.

Chris

chrisjk
Jan 11th, 2000, 07:02 AM
I came across a game once that came on CD, and the developers could clearly get it to fool Windows as one file was over 2GB!! (in DOS it registered as only 200 MB - must be able to fool Windows as CD's can only hold 650 MB (700 at a push!!) :)

Useful copy protection feature I think

Regards,

------------------
- Chris
chris.kilhams@btinternet.com
If it ain't broke - don't fix it :)