| |
murugappan
Posts: 1
Score: 0
Joined: 10/2/2007
Status: offline
|
'Script start strDir = "D:\folderpath" Set fso = CreateObject("Scripting.FileSystemObject") Set objShell = CreateObject("WScript.Shell") Set objDir = FSO.GetFolder(strDir) getInfo(objDir) Sub getInfo(pCurrentDir) For Each aItem In pCurrentDir.Files If LCase(Right(Cstr(aItem.Name), 3)) = "zip" Then wscript.echo aItem.path objshell.run "c:\7za d " & aItem.path & " *.mp3" 'Download 7za.exe from internet and place the exe in the specified path. Its free download End If If LCase(Right(Cstr(aItem.Name), 3)) = "mp3" Then wscript.echo aItem.path aItem.delete(True) End If Next For Each aItem In pCurrentDir.SubFolders 'wscript.Echo aItem.Name & " passing recursively" getInfo(aItem) Next End Sub 'Script End
_____________________________
Murugappan URL: http://orangescripts.blogspot.com
|
|