Jump to content

Recommended Posts

Posted (edited)
C:\>md test
C:\>cd test
C:\test>rmdir .
Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.
C:\test>cd ..
C:\>rmdir test
C:\>

You cannot delete the current directory

Edited by Exit

App: Au3toCmd              UDF: _SingleScript()                             

Posted

Does this mean that DirRemove() leaves the empty folder? The Help file says "Deletes a directory/folder." I didn't see anything that says it doesn't delete the specified folder. Now I'm confused. How do I delete the empty folder? Do I have to go to the folder's parent to delete it?

Posted

OK, thanks. I found my problem. I didn't realize that @WorkingDir referred to the selected folder's parent.

If I select a file in a file manager (I use DOpus), then read $CMDLINERAW, it shows that folder's parent, rather than the selected folder (like I expected). Once I realized that, I was able to fix my code to handle that.

Thanks for your help.

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...