Welcome to MorphOS-Storage, a webserver dedicated to MorphOS users. ©2016-2026 Meta-MorphOS.org
Description:Change a file's size
Developer/Porter:Thomas Igracki
Readme:
Short: Change a file's size (64bit support)
Author: Thomas Igracki
Uploader: Thomas Igracki de
Type: util/cli
Version: 1.2
Architecture: ppc-morphos
Kurz: Gr��e einer Datei �ndern, 64bit Unterst

Change the filesize of a file, with 64bit support!

SetFileSize File/A,NewSize/A,V=Verbose/S:
File/A : The filename whose filesize should be set. If it doesn't exist, it will be created.
NewSize/A : The new filesize, with 64bit support!
Z=FillWithZeros/S: Overwrite the new data with zeros, otherwise data from deleted files could be used!
V=Verbose/S : For testing, show "Set filesize to xxx bytes...".
K/S : NewSize will be multiplied by 1.000!
M/S : NewSize will be multiplied by 1.000.000!
G/S : NewSize will be multiplied by 1.000.000.000!
KB/S : NewSize will be multiplied by 1024!
MB/S : NewSize will be multiplied by 1024*1024!
GB/S : NewSize will be multiplied by 1024*1024*1024!

Example:
========
> SetFileSize64 HundertMegaByte 100 MB

Set the filesize of the file "HundertMegaByte" to 100 MB.

> SetFileSize64 HundertTausend 100 K

Set the filesize of the file "HundertTausend" to 100.000 Bytes.


History:
========
26-May-2020: v1.2
chg: I'm now using a 10KB buffer for writing the zeros, before I had a 1KB buffer, but this was too slow
chg: Changed the name of the Z=ZEROING/S option to Z=FillWithZeros/S

03-Dec-2018: v1.1
new: Added K/S, M/S, G/S and KB/S, MB/S, GB/S parameters to easily
set the filesize to some common values

Upload Date:May 18 2026
Category:Files/Tools
Download:SetFileSize64_1.2.lha
Md5:a2acccf60f98d9f310e7eb8d072d389c
Size:6 KB
Downloads:9

Screenshot(s)
History
Last Comments
Add comment