- @echo off
- wmic ENVIRONMENT create name="TOMCAT_HOME",username="<system>",VariableValue="D:\Tomcat5.5"
- pause
@echo off wmic ENVIRONMENT create name="TOMCAT_HOME",username="<system>",VariableValue="D:\Tomcat5.5" pause
创建桌面快捷方式
- @echo off
- ECHO [InternetShortcut]>> google.url
- ECHO URL=http://www.google.com>> google.url