I'm trying to use powershell to do a WGET and have the output go to a text file.
so far all attempts have failed.
PS C:\Program Files (x86)\GnuWin32\bin> For ($i=1; $i -lt 5; $i++)
{wget.exe www.zillabunny.com | out-file C:\temp\wget.txt}
leaves an empty text file
and
For ($i=1; $i -lt 5; $i++) {wget.exe www.zillabunny.com} > C:\temp\wget.txt
gives me
: The term '>' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:60 + For ($i=1; $i -lt 5; $i++) {wget.exe www.zillabunny.com} > wget.txt + ~ + CategoryInfo : ObjectNotFound: (>:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException