dmaey2k Posted January 16, 2008 Share Posted January 16, 2008 I am trying to remove a directory (dirremove) the command works fine if the directory exists .. my script bombs if it is not .... is there an if statement of something that i can enter to prevent this from happening ... many regards Link to comment Share on other sites More sharing options...
weaponx Posted January 16, 2008 Share Posted January 16, 2008 (edited) If FileExists("C:\windows") Then DirRemove("C:\windows") EndIf Edited January 16, 2008 by weaponx Link to comment Share on other sites More sharing options...
Developers Jos Posted January 16, 2008 Developers Share Posted January 16, 2008 I am trying to remove a directory (dirremove) the command works fine if the directory exists .. my script bombs if it is not .... is there an if statement of something that i can enter to prevent this from happening ... many regardsWhat do you mean with "My script bombs" ?The function should only return 1 or zero but nicely continue...... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
dmaey2k Posted January 16, 2008 Author Share Posted January 16, 2008 If FileExists("C:\windows") Then DirRemove("C:\windows")EndIfThank you very much WEAPONX ... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now