Windows command line one-liners

digitalworldzloverguy

Premium Member
Premium Member
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]
 
1. Download a file from a URL and save to a locally accessible path:
powershell "(New-Object Net.WebClient).DownloadFile("""https://www.examplewebsite.local/whateverfile.txt""", """c:\foldername\filename.txt""")"
[works on: winXP, win7, win8.1, win10]

2. Show the time of last boot up (or uptime on XP):
systeminfo |find /i "time:"
[works on: winXP, win7, win8.1, win10]
 
Back
Top