Menu

#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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.