sarya
15 years agoFrequent Contributor
Files not getting deleted from the folder
Hi,
I have a folder with path " C:\Program Files (x86)\Report2Web Client Tools\Logs".I am trying to delete all the files in it at once.It has twenty files with name as "Burster-2010-02-10.txt" with different dates .I used this in my script as shown below but it does not do any deletion .
(fs.FileExists(bursterpath + "Logs\\*.txt")) DeleteFile(bursterpath + "Logs\\*.txt", );Thanks,Sumedha
I have a folder with path " C:\Program Files (x86)\Report2Web Client Tools\Logs".I am trying to delete all the files in it at once.It has twenty files with name as "Burster-2010-02-10.txt" with different dates .I used this in my script as shown below but it does not do any deletion .
if (fs.FileExists(bursterpath + "Logs\\*.txt")) fsDeleteFile(bursterpath + "Logs\\*.txt", true);
Thanks,
Sumedha
(fs.FileExists(bursterpath + "Logs\\*.txt")) DeleteFile(bursterpath + "Logs\\*.txt", );Thanks,Sumedha