View Single Post
Old 05-16-2008, 08:39 AM  
mrkris
Confirmed User
 
Join Date: May 2005
Posts: 2,737
Quote:
Originally Posted by scoremoola View Post
save the code below into a file call it whatever you like and run it like so
python nameofscript.py foldertoprocess
-------------------------------

PHP Code:
import osos.pathsys

destdir 
"/destdir"

os.system"mkdir " destdir )

for 
rootdirsfiles in os.walksys.argv[1]  ):
    for 
name in files:
            
name os.path.join(rootname)
            
command "mv \"" name "\" \"" destdir "\""
            
os.systemcommand 
Holy .... abort.
__________________

PHP-MySQL-Rails | ICQ: 342500546
mrkris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote