Jump to content
Sign in to follow this  
noleghair

how can i delete/move unwanted folders from a folder

Recommended Posts

noleghair

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
SmOke_N

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()?

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.

Share this post


Link to post
Share on other sites
evilertoaster

FileFindFirst and next work on directoies also.

Share this post


Link to post
Share on other sites
noleghair

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.