sshrum Posted April 19, 2005 Posted April 19, 2005 Seems that DirDelete should do the old fashion dir chop versus the 1 by 1 file remove until all the files are removed...this is taking a while to do when there are a lot (+200) files in a folder. Is there a faster way? Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot'
buzz44 Posted April 19, 2005 Posted April 19, 2005 (edited) $Folder = "C:\Dont delete me\folder" Run(@ComSpec & ' /c rmdir /s /q "' & $Folder & '"', "",@SW_HIDE ) Not sure what speed it will be, but its a different way. I tested it on a "New Folder", empty. Edited April 19, 2005 by Burrup qq
MHz Posted April 19, 2005 Posted April 19, 2005 DirRemove ( "path" [, recurse] )Are you using 1 for recurse?Hope your not using FileDelete('*') then DirRemove(), else that could be slow.
Westi Posted April 19, 2005 Posted April 19, 2005 Hey, we are under a GUI OS! So we should useFileRecycle("C:\TEST") ...and i think this is the fastest way.
sshrum Posted April 21, 2005 Author Posted April 21, 2005 Hey, we are under a GUI OS!So we should useFileRecycle("C:\TEST")...and i think this is the fastest way. <{POST_SNAPBACK}>Is this right??? I'll need to test this but my gut is telling me no.That SHELL call might be what I'm looking for. Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot'
steveR Posted April 21, 2005 Posted April 21, 2005 Is this right??? I'll need to test this but my gut is telling me no.http://www.autoitscript.com/autoit3/docs/f...FileRecycle.htm AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.
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