if (fs.FileExists('c:\\Bun27' + r2wdate + 'T*.pdf')) fs.DeleteFile('c:\\Bun27' + r2wdate + 'T*.pdf');
if (fs.FileExists('c:\\Bun27' + r2wdate + '*.pdf')) fs.DeleteFile('c:\\Bun27' + r2wdate + '*.pdf');
if (fs.FileExists('c:\\*.pdf')) fs.DeleteFile('c:\\*.pdf');
Thanks,
Sumedha
Hi Sumedha,
You can use the script below to delete the files:
aqFileSystem.DeleteFile('c:\\Bun27' + r2wdate + 'T*.pdf');
aqFileSystem.DeleteFile('c:\\Bun27' + r2wdate + 'T*.pdf');
aqFileSystem.DeleteFile('c:\\Bun27' + r2wdate + '*.pdf');
Please refer to the "aqFileSystem.DeleteFile" article to learn more about the aqFileSystem.DeleteFile method.
Subject | Author | Latest Post |
---|---|---|