F5F Stay Refreshed Software Operating Systems Saving files from Windows CMD

Saving files from Windows CMD

Saving files from Windows CMD

S
SgtCool
Member
222
07-14-2016, 09:43 AM
#1
Yes, you can use tools like PowerShell or Command Prompt to download files via the command line on Windows. For example, in PowerShell you could run `Invoke-WebRequest -Uri "205.x.x.x" -OutFile "file.txt"`. In Command Prompt, use `wget` if available or a similar utility like `curl`.
S
SgtCool
07-14-2016, 09:43 AM #1

Yes, you can use tools like PowerShell or Command Prompt to download files via the command line on Windows. For example, in PowerShell you could run `Invoke-WebRequest -Uri "205.x.x.x" -OutFile "file.txt"`. In Command Prompt, use `wget` if available or a similar utility like `curl`.

C
creeperjedi
Junior Member
15
07-17-2016, 01:38 AM
#2
Could possibly extract the curl section... needs further review Edit: Intended for WGET
C
creeperjedi
07-17-2016, 01:38 AM #2

Could possibly extract the curl section... needs further review Edit: Intended for WGET

E
140
07-17-2016, 02:15 AM
#3
If you're using wget, Windows supports it. Launch PowerShell and enter the command for wget. Remember, wget acts as an alias for Invoke-WebRequest, performing a similar download function. PowerShell also provides a WebClient class that can be used to fetch files: $client = New-Object System.Net.WebClient $client.DownloadFile("www.example.com/file.exe", "D:\TempFolder\Download\file.exe")
E
Egyptian_Gamer
07-17-2016, 02:15 AM #3

If you're using wget, Windows supports it. Launch PowerShell and enter the command for wget. Remember, wget acts as an alias for Invoke-WebRequest, performing a similar download function. PowerShell also provides a WebClient class that can be used to fetch files: $client = New-Object System.Net.WebClient $client.DownloadFile("www.example.com/file.exe", "D:\TempFolder\Download\file.exe")