- Joined
- Feb 17, 2020
- Messages
- 6
- Reaction score
- 0
Share any windows command line one-liners that have been useful for you.
The idea is to use only built-in commands / functions (no third-party tools required). I'll do my best to note on which OS versions this has been tested.
I intend to keep adding and build up a nice long list:
1.Download a file from a URL and save to a locally accessible path:
powershell "(New-Object Net.WebClient).DownloadFile("""https://www.examplewebsite/whateverfile.txt""", """c:\foldername\filename.txt""")"
[works on: win7]
The idea is to use only built-in commands / functions (no third-party tools required). I'll do my best to note on which OS versions this has been tested.
I intend to keep adding and build up a nice long list:
1.Download a file from a URL and save to a locally accessible path:
powershell "(New-Object Net.WebClient).DownloadFile("""https://www.examplewebsite/whateverfile.txt""", """c:\foldername\filename.txt""")"
[works on: win7]