I expect the file in the 'current' directory, hence the dot.
Originally I had the full path in there, but it didn't work, so I thought
I'd use the dot instead.

OK, just in case, I changed the path to E:\\MailRoot\\bin\\testfile.txt
Nothing still.

I also made sure cscript.exe and XMail.exe have permission set to 'Everyone'
- 'Full Control'

I also tried using XMail 1.7, 1.8 and 1.9 with the same result.
Really weird problem.

Peter

> -----Original Message-----
> From: Davide Libenzi [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 1 July 2002 8:28 AM
> To: '[EMAIL PROTECTED]'
> Subject: [xmail] Re: mailproc.tab does not execute "external" program
> 
> 
> 
> On Mon, 1 Jul 2002, Peter Vlaciky wrote:
> 
> >
> > OK.  So the parameters must bne passed incorrectly I guess.
> > I created a small test script:
> >
> >   var fso = new ActiveXObject("Scripting.FileSystemObject");
> >   a = fso.OpenTextFile(".\\testfile.txt", 8, true);
> >   d = new Date();
> >   a.WriteLine(d.toLocaleString());
> >   a.Close();
> >
> > and I tried running it from the DOS prompt:
> >
> > E:\MailRoot\bin>C:\WINNT\system32\cscript.exe  //T:120 //B
> > E:\MailRoot\bin\test.js
> >
> > It works OK and generates the testfile.
> > But my mailproc, which looks like this, generates nothing.
> >
> > "mailbox"
> > "external"  "0"     "0"     "C:\WINNT\system32\cscript.exe  
> //T:120 //B"
> > "E:\MailRoot\bin\test.js"
> >
> > I tried deleteing the //T:120 //B but that didn't help either.
> > I checked both the EventLog and the Task Manager on 
> Win2000, there is
> > nothing there.
> > I am guessing that either the line is being parsed 
> incorrectly somehow, or
> > XMail does not have the permission to run csript maybe?
> > What else could be wrong?
> 
> try to put an absolute path for the test text file. where do 
> you expect
> the file to be created ?
> 
> 
> 
> - Davide
> 
> 
> -
> 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]

Reply via email to