AutoHotkey Community

It is currently May 27th, 2012, 6:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: FileRemoveDir - bug
PostPosted: December 5th, 2005, 2:32 pm 
The function FileRemoveDir have bug

FileRemoveDir, C:\Temp\blabla, 1
delete subdirs and files. The blabla-dir is not deleted

Please help! :-)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2005, 3:08 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
It works okay on my system.

If the folder is "in use" -- perhaps because some file or folder inside is in use by a program -- it can't be deleted and the command will set ErrorLevel to 1 to indicate the problem.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2005, 3:43 pm 
Thanks, for the fast answer.

I tried the Script on 3 PCs. C:\temp\blabla is not removed. This folder I provided only to the test. It is not used by system. Definitely not.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2005, 5:18 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
Works fine here. (Win XP).

Presumably you tried executing that line on its own and not as part of a bigger script?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2005, 6:21 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
A folder is considered in-use even if it only has focus in an explorer window. If it is the case, moving the selection away should solve the problem.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group