SQL Rob

SQL Server and other database technologies

Command Line – Windows

Windows Command Line Commands:
@echo off : Prevent commands from being displayed, only output
cd: Change Directory – cd .. = up a level – cd ./Dir = down a level into Dir
cls: Clear Screen
copy: Copy files – /Y to overwrite
del: Delete Files
dir: List Directory Content
echo “Message” : Write to console
explorer . : Open current directory in Windows Explorer
help X : Documentation for command X
ipconfig: IP and Network info
mkdir: Create Directory
move: Move files
netstat: Display Connections
pwd: Present working directory
rd: Remove Directory
rem: Comments/Remarks
ren x y : Rename file x to y
systeminfo : System config – OS, memory, processors, etc.
xcopy: Copy Files and directories

whoami /groups > groups.txt – Write results to text file

Shift + Insert – To paste into Shell