Sign in to follow this  
Followers 0
dovetail

Directory listing for certain filetypes and sizes

2 posts in this topic

I am new to using AutoIt v3 and I want to create a tray tool that monitors a folder and whenever I download my media files into that folder it grabs them and moves them to proper sub-folders based on file type and file size

IE some files are AVIs/MKVs and 125, 350 or >700 MB for movies but the same folder have MP3s, EXE and ZIP files that i want left alone

psudo-code

For (All files in DownloadedDIR)
IF FileType = AVI or MKV AND FileSize = 125 THEN FileMove to "TV Shows"
IF FileType = AVI or MKV AND FileSize = 350 THEN FileMove to "TV Shows"
IF FileType = AVI or MKV AND FileSize >= 700 THEN FileMove to "Movies"

IF FileType = MP3 FileMove to "Music"
[code=auto:0]

I just dont know how to read from a directory and move based on filesize (i know the two main points of the tool)
THANKS in advance for all the help


            
        

        
            
                

    
        
            
        
    


            
        

        
            
                
                
                
            
            
                
            
        
        
    

    
        
            Share this post
            
Link to post
            
            
            

            
                Share on other sites
                

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

            
        
    


    

                    
                        





(adsbygoogle = window.adsbygoogle || []).push({});




                    
                
                    
                    
                    






    
    
        
JoHanatCent   

    
        
    
             7
    
        
    

        
            
                Just for Fun
            
            

            
                

    
        
    

            
            Active Members
            
            
                

    
        
    
             7
    
        
    

                406 posts
                
                

            
        
    
    
        


    

    
        
            
            
                
            
            
        

        
    #2 · 
            Posted 
            
            
            
        
    

    


            
        
            I just dont know how to read from a directory and move based on filesize (i know the two main points of the tool)

Try these from your help:

FileSelectFolder
FileFindFirstFile
FileGetSize
FileMove

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