VBS中获取系统本次及上次开关机时间的代码(WinXP/win2003/Win7兼容版)
实现代码如下: If (Lcase(Right(Wscript.FullName,11)) = "wscript.exe") Then CreateObject("WScript.Shell").Run("%Comspec% /C " &Chr(34)&"mode con cols=
实现代码如下: If (Lcase(Right(Wscript.FullName,11)) = "wscript.exe") Then CreateObject("WScript.Shell").Run("%Comspec% /C " &Chr(34)&"mode con cols=
%ALLUSERSPROFILE% C:\Documents and Settings\All Users %USERPROFILE% C:\Documents and Settings\当前用户名 %HOMEPATH% C:\Documents and Settings\当前用户名 %SYSTEM
实现代码如下:function Sleep(n){var a = new ActiveXObject("WScript.Shell");a.Run("%comspec% /c ping -n " + n + " 127.0.0.1 > nul", 0, 1);a = null; }
实现代码如下:@echo off echo exit|%ComSpec% /k prompt e 100 B4 00 B0 12 CD 10 B0 03 CD 10 CD 20 $_g$_q$_|debug>nul chcp 437>nul graftabl 936>nul set