Category Batch

Windows Set Environmental Variables

setx M2_HOME “C:\AutoTest\Opt\apache-maven-2.2.1” setx ENV AUTO1 setx JAVA_HOME “C:\AutoTest\Opt\jdk1.6.0_32x64” setx JAVA_OPTS “-Xmx1024M -Xms512M -XX:MaxPermSize512M” setx CATALINA_HOME “C:\AutoTest\Opt\apache-tomcat-6.0.37_clear_install” setx PATH “%PATH%;%M2_HOME%\bin;%JAVA_HOME%\bin;%CATALINA_HOME%\bin;C:\AutoTest\Opt\SSH”

Windows Netsh Firewall

C:\>netsh firewall show opmode Domain profile configuration (current): ——————————————————————- Operational mode = Disable Exception mode = Enable Standard profile configuration: ——————————————————————- Operational mode = Disable Exception mode = Enable Local Area Connection firewall configuration: ——————————————————————- Operational mode = Enable From…

Win 7 and Vista

Windows 7 Activation cscript slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX cscript slmgr.vbs -ato

Shell: Windows Batch Cheat Sheet

CACLS Change file permissions CALL Call one batch program from another CD ChangeDirectory- move to a specific Folder CHANGE ChangeTerminalServerSession properties CHKDSK CheckDisk- check and repair disk problems CHKNTFS Check the NTFS file system CHOICE Accept keyboard input to a…