So I guess it errors out somewhere with the command line and I cant see what it is doing.Īre they any suggestions or tips that can point me in the right direction? I'm pretty new to powershell and seem to be catching on pretty quick but I'm assuming I have got this completely wrong as the code executes but it doesn't extract. #arguments :: x (extract) y(presume yes) r(recurse subdir) Write-host = $path | format-table directory #test to see if it is actually filtering and showing correct results: $path = get-ChildItem -filter "*.zip" -path A:\testfolder\ -recurse #filter through files looking for zip files. Here is my simple code so far: $WinRar = "C:\Program Files\WinRAR\winrar.exe" My difficulty lies with the actual execution of the arguments and command line. So after digging around for a day or so I have found not much information about powershell and extracting files with winrar's command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |