pad with zeroes not spaces

This commit is contained in:
Peter Ferrie 2021-10-18 18:31:55 -07:00
parent bfac131207
commit b98a4c55c8
1 changed files with 1 additions and 1 deletions

View File

@ -2,4 +2,4 @@ a = new ActiveXObject("scripting.filesystemobject")
b = a.opentextfile(WScript.Arguments(1))
c = b.readall()
b.close()
a.createtextfile(WScript.Arguments(1)).write(String(c + Array(512).join(" ")).substr(0, 512))
a.createtextfile(WScript.Arguments(1)).write(String(c + Array(512).join(String.fromCharCode(0))).substr(0, 512))