4cade/bin/padto.js
Peter Ferrie 8f28a9f55a sync
2019-01-07 18:22:55 -08:00

6 lines
213 B
JavaScript

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))