4cade/bin/padto.js

6 lines
213 B
JavaScript
Raw Normal View History

2019-01-08 02:22:55 +00:00
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))