Tag Archives: Command Line

Windows cURL on the command line

Published by:

Command line and scripting tool for transferring data with URLs see the website Curl.se

curl -L -A "Mozilla" http://website.com

This follows re-directs and uses a dummy header to anticipate 406 Not Acceptable errors then returns the page content, you can use a full header string to represent other browsers

This YouTube video is presented by the cURL creator

Clearing & formatting a drive from the command line using Diskpart

Published by:

Run diskpart from the Commmand prompt – Run CMD from the Start Menu or Run dialogue box using WinKey + R to get to the command prompt

Then use the commands below in sequence within the diskpart interface

list disk

select disk [#] (adding the reference number from the list command above)

clean (permanent delete content)

create partition primary

format fs=ntfs

assign (gives a drive letter – unspecified)

exit to leave diskpart