Sign in to follow this  
Followers 0
noleghair

how can i delete/move unwanted folders from a folder

4 posts in this topic

#1 ·  Posted (edited)

i have a folder on the network that i send new tasks to a couple of times a day. Each of the tasks are folders with a couple of files in them. In that root folder i also have an archive folder. What i would like to do is create a program that i would put in windows scheduler so at the end of every day it would run and it would take every folder that is not named "archive" and move it to the archive folder.

i was thinking i would create either an INI or a text DB that would contain all of the folders i dont want to move and then check all of the folders contents against that list

I have used filefindfirst and next to do the same thing with files before, how can i do it with folders? any help would be awesome.

Edited by noleghair

Share this post


Link to post
Share on other sites



i have a folder on the network that i send new tasks to a couple of times a day. Each of the tasks are folders with a couple of files in them. In that root folder i also have an archive folder. What i would like to do is create a program that i would put in windows scheduler so at the end of every day it would run and it would take every folder that is not named "archive" and move it to the archive folder.

i was thinking i would create either an INI or a text DB that would contain all of the folders i dont want to move and then check all of the folders contents against that list

I have used filefindfirst and next to do the same thing with files before, how can i do it with folders? any help would be awesome.

DirMove()?

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

FileFindFirst and next work on directoies also.

Share this post


Link to post
Share on other sites

i guess i didnt know file find next works on folders. thank you

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
Sign in to follow this  
Followers 0