Jump to content

Recommended Posts

Posted

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

Posted (edited)

If FileExists("C:\windows") Then

DirRemove("C:\windows")

EndIf

Edited by weaponx
  • Developers
Posted

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

What 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.
  :)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...