extracted folder moving help needed
Posted: Thu Apr 05, 2007 3:00 pm
hello Oleg here is what I am trying to do. I am having problems with step 3a and step 4 a-d.Can you help? I have been trying and have many little tasks that I use calling other task to do this but have trouble after the entire folder is extracted... to move entire folder and then delete that folder.... Thanks!1) monitor for file or folder creation e:\books
2) move all zip or rar or par2 files into a hold\sorting dir e:\hold
3) extract zip or rar files into the same directory (using winrar) with each archive creating a separate folder (winrar does that automatically using C:\Program Files\WinRAR\WinRAR.exe e -ad *.* -INUL -O+ -IBCK (corrected winar command line)
3a) if zip or rar has problem (corrupt, broken or password) stop winrar task and move problem archive to dir e:\problem files
4) after extract seach inside folder for txt, rtf or html or htm files
4a) moves to dir e:\sorted with this criteria:
4b) creates master folder named txt, or rtf or htm
4c) creates a new master folder underneath the folders in 4b based
off of the first two words in the folder name from step 3
4d) when moving to e:sorted it will look at folder created in step 3 and move the entire folder based on if the folder
has a txt file to e:\sorted\txt\(folder name)
has a rtf file to e:\sorted\rtf\(folder name)
has a htm/html file to e:\sorted\htm\(folder name)
5) if encounter already named folder it overwrites it
6)deletes compressed archive
2) move all zip or rar or par2 files into a hold\sorting dir e:\hold
3) extract zip or rar files into the same directory (using winrar) with each archive creating a separate folder (winrar does that automatically using C:\Program Files\WinRAR\WinRAR.exe e -ad *.* -INUL -O+ -IBCK (corrected winar command line)
3a) if zip or rar has problem (corrupt, broken or password) stop winrar task and move problem archive to dir e:\problem files
4) after extract seach inside folder for txt, rtf or html or htm files
4a) moves to dir e:\sorted with this criteria:
4b) creates master folder named txt, or rtf or htm
4c) creates a new master folder underneath the folders in 4b based
off of the first two words in the folder name from step 3
4d) when moving to e:sorted it will look at folder created in step 3 and move the entire folder based on if the folder
has a txt file to e:\sorted\txt\(folder name)
has a rtf file to e:\sorted\rtf\(folder name)
has a htm/html file to e:\sorted\htm\(folder name)
5) if encounter already named folder it overwrites it
6)deletes compressed archive