Skip to main content

Deleting an Excel file from an IDEA script

I'm new to IDEA scripting and wonder if anyone has a script that will delete and external Excel file from an IDEA script?
 

Brian Element Wed, 01/25/2017 - 09:59

Hi Russ and welcome to the site.

I am not sure I understand what you want to do.  So you are looking for a script that would select an Excel file and then delete it?  Or are you looking for code you can place in your script to delete an Excel file?

Thanks

Brian

Brian Element Wed, 01/25/2017 - 12:29

Hi Russ,

It is a simple command.

Kill "C:\Path\File.xls"

If the file is open or in use it will probably give you an error.

Brian