4cade/bin/padto.js

6 lines
255 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))
2021-10-22 14:12:57 +00:00
c = b.readall().replace(/\r\n/g, "\n")
2019-01-08 02:22:55 +00:00
b.close()
2021-10-19 01:31:55 +00:00
a.createtextfile(WScript.Arguments(1)).write(String(c + Array(512).join(String.fromCharCode(0))).substr(0, 512))