Hello CLEMENT,
Monday, July 01, 2002, 4:14:48 PM, you wrote: CF> For exact syntax type cscript /? .. CF> I don't remember / or // .. CF> You will also see a short description of the options CF> /H: (or //H: ?) means that cscript WILL BECOME THE DEFAULT SCRIPT PROCESSOR CF> (cscript is the command ligne script processor, wscript is the graphical CF> script processor) CF> Francis CF> -----Message d'origine----- CF> De: Peter Vlaciky CF> A: '[EMAIL PROTECTED]' CF> Date: 01/07/02 01:58 CF> Objet: [xmail] Re: mailproc.tab does not execute "external" program CF> No, I haven't tried that. CF> Thank you for the tip, I will give it a go. CF> I think I will also need to read up more on the CSript command. CF> Was it "cscript //H:CScript" like that? Double slashes? What does the CF> H: CF> mean? CF> Thanks again, CF> Peter >> -----Original Message----- >> From: CLEMENT Francis [mailto:[EMAIL PROTECTED]] >> Sent: Monday, 1 July 2002 9:48 AM >> To: '[EMAIL PROTECTED]' >> Subject: [xmail] Re: mailproc.tab does not execute "external" program >> >> >> >> Hello Peter >> >> Is cscript the default environment ? >> >> Did you execute cscript //H:CScript at any time before (to >> say windows = >> to >> run the scripts BY DEFAULT with cscript) ? >> >> Keep in mind that the default is to run .js and .vbs with >> WScript even = >> if >> you launch you script with cscript ... (and WScript tries to create a >> windows ... but from a service ... ouppss) >> >> Second, try to run the script without the //T:120 (no >> timeout) to see = >> what >> happend >> >> Francis >> >> >> -----Message d'origine----- >> De : Peter Vlaciky [mailto:[EMAIL PROTECTED]] >> Envoy=E9 : lundi 1 juillet 2002 01:13 >> =C0 : '[EMAIL PROTECTED]' >> Objet : [xmail] Re: mailproc.tab does not execute "external" program >> >> >> >> I am not sure I understand. >> This is what I have: >> >> "external" "0" "0" "C:\WINNT\system32\cscript.exe >> //T:120 //B" >> "E:\MailRoot\bin\test.js" >> >> Did you mean something like this? >> >> "external" "0" "0" "C:\WINNT\system32\cscript.exe >> //T:120 //B" >> "E:\MailRoot\bin\test.js" "@@TMPFILE" >> >> I tried that, it didn't help. But maybe I should change my test.js to >> actually use that parameter. >> I was also thinking of somehow recompiling XMail so that I >> can see what = >> it >> is trying to execute. >> >> > -----Original Message----- >> > From: Davide Libenzi [mailto:[EMAIL PROTECTED]] >> > Sent: Monday, 1 July 2002 9:00 AM >> > To: '[EMAIL PROTECTED]' >> > Subject: [xmail] Re: mailproc.tab does not execute >> "external" program >> >=20 >> >=20 >> >=20 >> > On Mon, 1 Jul 2002, Peter Vlaciky wrote: >> >=20 >> > > >> > > I think the double slashes are a JavaScript thing. >> > > When I double click the .js file it comes up with an error=20 >> > unless I use >> > > double slashes. >> >=20 >> > yes, if the string is inside the source you need dlb-slash. i=20 >> > thought it >> > was a parameter of "external" ... >> >=20 >> >=20 >> > > I do use 1.9, I just thought maybe the exe was somehow=20 >> > damaged so I tried >> > > different versions. >> > > >> > > Hm, I don't know. I'll keep trying. >> >=20 >> > maybe i know ... try to give at least one parameter to the=20 >> > external line : >> >=20 >> > "external" "0" "0" "path" "param1" >> >=20 >> >=20 >> >=20 >> >=20 >> > - Davide >> >=20 >> >=20 >> > - >> > To unsubscribe from this list: send the line "unsubscribe xmail" in >> > the body of a message to [EMAIL PROTECTED] >> > For general help: send the line "help" in the body of a message to >> > [EMAIL PROTECTED] >> >=20 >> - >> To unsubscribe from this list: send the line "unsubscribe xmail" in >> the body of a message to [EMAIL PROTECTED] >> For general help: send the line "help" in the body of a message to >> [EMAIL PROTECTED] >> - >> To unsubscribe from this list: send the line "unsubscribe xmail" in >> the body of a message to [EMAIL PROTECTED] >> For general help: send the line "help" in the body of a message to >> [EMAIL PROTECTED] >> CF> - CF> To unsubscribe from this list: send the line "unsubscribe xmail" in CF> the body of a message to [EMAIL PROTECTED] CF> For general help: send the line "help" in the body of a message to CF> [EMAIL PROTECTED] CF> - CF> To unsubscribe from this list: send the line "unsubscribe xmail" in CF> the body of a message to [EMAIL PROTECTED] CF> For general help: send the line "help" in the body of a message to CF> [EMAIL PROTECTED] In my case this work: filters\.tab: "cmd.exe /x /c D:\mailserv\xmail\MailRoot\filters\copyf.bat"[tab]"@@FILE" filters\copyf.bat: (d: & cd D:\mailserv\xmail\MailRoot\filters) ::must be last program call (retcode to xmail (100, 99, 98 or 97)): cscript.exe //Nologo copyf.js %1 >> copyf.log exit filters\copyf.js: WScript.Quit(myProc()); function myProc(){ var retCode = 100; var sFilename = ""; if(WScript.Arguments.length > 0) { sFilename = WScript.Arguments.item(0); } // LOG("script param: "+sFilename); try { var fso = new ActiveXObject("Scripting.FilesystemObject"); .... } catch(err){LOG("ERROR: copyf.js rize Exception."); .... return retCode; } function LOG(txt) { WScript.Echo("'"+txt+"'"); } Ok, I think no big diff. while xmail processing filters\.tab or mailproc.tab. P.S. Davide, thank you for great server. Best regards, Valik mailto:[EMAIL PROTECTED] Valik Snake [May be Sun - big red bird...] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
