Delete a file from export folder
Jiyajijp
Forums
Hi Brian,
Is there any code to delete a file from IDEA exports folder. (If already same name exists we need delete that file and save new file in the Exports folder)
Thanks in advance,
Hi Jiyajijp,
Hi Jiyajijp,
Yes there is. A access the Scripting.FileSystemObject that I believe is part of windows which allows you to do lots of different things at the file level. This code will first check to see if the file exists, it then closes it (it needs to be closed in IDEA before being deleted) and then deletes it. So you just need to send the path and filename of the file for this to work.
Brian