#4 [mailmsg.js]Wscript.Arguments

open
nobody
None
5
2008-06-27
2008-06-27
Anonymous
No

In japanese Windows XP,temporary file was made in

C:\Documents and Settings\xxxxx\Local Settings\temp\aaz42.txt

So,
var objArgs = WScript.Arguments;
var tmpfilename = objArgs(0);

must be

var objArgs = WScript.Arguments;
var ary = new Array();
for(var i=0;i<objArgs.length;i++){
ary.push(objArgs(i));
}
var tmpfilename = ary.join(" ");

or,cscript must call mailmsg.js with arguments wrapped by double quotes.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks