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
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to