QUOTE (sweept @ Aug 6 2008, 09:20 AM)

1) that "00" gets added after each letter in output
Ideally you don't want that, but rather proper unicode support: that's where the 00's normally come from, it's not just padding (having 00's for no reason would be kind of dumb). This script doesn't return UTF-16 encoded strings, and if you try passing a unicode-encoded text file instead (probably not what you want in the first place), it only writes "0" instead of "00", plus, it writes the byte order mark and all that to the file too. It might be helpful to know what you're doing all this for.
QUOTE (sweept @ Aug 6 2008, 09:20 AM)

2) output without "-" @ the beginning of each line
Then replace
CODE
var outputline = "-";
by
CODE
var outputline = "";
QUOTE (sweept @ Aug 6 2008, 09:20 AM)

on some machines that are picky on scripts using reg tweaks to disable *.js it gets impossible to share or use this!
Why on earth would be .js files disabled? or .vbs files for that matter? All this accomplishes is making the scripting host useless... I can't think of a single good reason to do that.
One could "fix" the .js file for unicode encoded output, but seemingly you don't want a jscript file.
If you want a .exe, then yes, you'll have to use something else. Any other techs you can't use? This could easily be done in a dozen lines of C# (would be a .exe, but you'd need the .NET framework installed)