Another option here could be to use the FileSystem COM Object, and this COM object has a method called FileExists. Passing a file path to this method returns a Boolean value indicating if the file exists or not.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 August 2005 20:42
To: [email protected]
Subject: Re: Witango-Talk: Reading/Deleting files from Witango.

 

first try to read it and count the textlenght, then if the lenght is > as 0, so you can delete it.

using a .bat also work fine. If the file dosn't exist, so nothing will be happen. And with a .bat command you can delete multiple files with the "*.html"

 

rs

 

Daniel

----- Original Message -----

From: Roman

Sent: Tuesday, August 02, 2005 8:50 PM

Subject: Witango-Talk: Reading/Deleting files from Witango.

 

Hello,

 

Is there a way in Witango to check if file exists before deleting it???

If I am trying to read *.txt file which does not exist I am getting IIS HTTP 500 - Internal server error.

Putting <@CLEARERRORS> in error action does not work.

I could create external .bat file which will do the reading and then parse output in Witango, but I am just wondering if there is a shortcut.

 

I am on IIS 5 and Witango 5.0.1.062.

 

 

Thank you,

Roman.

 

 

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf



********************************************************************
This message is intended only for the use of the person(s) ("the intended recipient(s)") to whom it is addressed. It may contain information which is privileged and confidential within the meaning of applicable law. If you are not the intended recipient, please contact the sender as soon as possible. The views expressed in this communication may not necessarily be the views held by LGCSB (Local Government Computer Services Board).

Any attachments have been checked by a virus scanner and appear to be clean. Please ensure that you also scan all messages, as LGCSB does not accept any liability for contamination or damage to your systems.
********************************************************************
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to