Deleting an Excel file from an IDEA script

4 posts / 0 new
Last post
Russ
Offline
Joined: 01/25/2017 - 09:24
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's picture
Brian Element
Online
Joined: 07/11/2012 - 19:57

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

Russ
Offline
Joined: 01/25/2017 - 09:24

Looking for code to place in the IDEA script to delete an Excel file
 

Brian Element's picture
Brian Element
Online
Joined: 07/11/2012 - 19:57

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