windows scripts tips

run program in other path and back to original path.
@echo off
rem get current path
set curpath=%cd%       

rem run the java class
cd /D C:\windows\system32
java Client %1=%2

rem return to current path
cd /d %curpath%


after windows xp os
u can use tasklist.exe and tskill.exe to view remote machines's process and kill it. but u can't kill the process generated by SYSTEM. only user process can be killed, maybe.

原文地址:https://www.cnblogs.com/margiex/p/276288.html