Command Line - PowerCram Blog - Page 2

Whois Command Line Utility for Windows

This great command line utility for Windows by Mark Russinovich over at SysInternals is the quick and easy way to get whois info for domain names or IP addresses. Whois performs the registration record for the domain name or IP address that you specify. Usage whois domainname [whois.server]whois IP address [whois.server] Domainname can be either a DNS name […]

What is the Linux equivalent to RoboCopy?

The Linux equivalent to Window’s robocopy is the command line file mirroring utility called rsync. Whether you want to backup your data, distribute files securely or mirror your working documents over the internet from the office to home, between computers on your local network, or from your computer to your web server, rsync can get the job done. […]

Robocopy Examples

Examples of Microsoft’s Robocopy (robocopy.exe) syntax. Robocopy Example 1: Copy files from one computer to another, skipping files already in the destination. robocopy \Computer1reports \Computer2backup *.doc /S Robocopy Example 2: List files over 32 MBytes in size. robocopy C:xyz /MAX:33554432 /L Robocopy Example 3: Move files over 14 days old (note the MOVE option will fail if any files are […]

Set IIS 6 (and IIS 7) custom HTTP headers from the command line

Command line method to set the Custom HTTP Headers.*Must execute from (default) c:InetpubAdminScripts: cscript adsutil.vbs set w3svc/HttpCustomHeaders “X-Powered-By: ASP.NET” “<Header 2>: <Value 2>” “<Header 3>: <Value 3>” Just replace “Header 2”: “Value 2” and “Header 3”: “Value 3” with your own values. Add more as desired. Note: This command updates/replaces current values and does not add to them […]

Robocopy Syntax, Command Line Switches and RoboCopy Examples

RoboCopy (Robust File Copy) is a command-line file copying tool in Windows 7, and Windows Vista. Although RoboCopy has been available for free with the Windows Resource Kit, it has never been an official feature of the operating system until Windows Vista. Unlike other built-in file copying commands such as Copy and XCopy, RoboCopy is designed for reliable copy or mirroring of […]