Jump to content
Sign in to follow this  
TDMIS

Delete command

Recommended Posts

TDMIS

What command would i use to delete a ".exe". I tried filedelete and nothing. My path is correct to the EXE.

Share this post


Link to post
Share on other sites
Didonet

FileDelete("D:\dir\*.exe")

...tested!

Did u get some errors or something...?

Edited by Didonet

Share this post


Link to post
Share on other sites
Didonet

Nope no error when i ran the script !!!

Can u show the script? :)

Share this post


Link to post
Share on other sites
Emiel Wieldraaijer

- When the file is in use .. it cannot be delete

- futher if the file is readonly it cannot be delete

You can check the process state with WinGetProcess

You can change the readonly state with FileSetAttrib

Emiel


Best regards,Emiel Wieldraaijer

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.