dolphins

FileDelete gives @error=0 and @extended=18

3 posts in this topic

Hello,
I am trying to delete the empty folder "c:\temp\xyz" with FileDelete("c:\temp\xyz"). I also tried it with a "\" at the end. In both cases @error is set to 0 and @Extended is set to 18 and the folder isn't deleted. I can delete/create the folder in Windows Explorer.

Any help on this?


Regards
Dolphins

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Can you show your code?

I am assuming your using FileDelete() but its not a file its a directory so try DirRemove()

 

Edited by ViciousXUSMC

Share this post


Link to post
Share on other sites

Yes, you are right. I guess I did misread the documentation. I thought FileDelete can also remove an empty folder (directory), but it can't. Thanks!

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