Shortcut.bat 内容
@echo off & SetLocal EnableDelayedExpansion
set ShortCut=.\ShortCut\ShortCut.ini
for /f "tokens=2,1" %%a in (%ShortCut%) do (
set /a flag+=1
if !flag! equ 3 (>>n echo Modified=1) else (>>n echo %%a %%b)
)
move /y "n" "%ShortCut%" 2>NUL
Shortcut.exe
set n=%date:~0,4%
set y=%date:~5,2%
set r=%date:~8,2%
set logname=%n%%y%%r%
echo shortcut%logname%.log
echo shortcut20080331.log
del /q ".\Log\shortcut%logname%.log"
if not exist ".\Log\*.log" rd /q ".\Log"
Shortcut.vbs
Shortcut.vbs 内容
On Error Resume Next
Set WshSHell = WScript.CreateObject("WScript.Shell")
if (WshShell.CurrentDirectory = WshShell.SpecialFolders("Desktop")) = "False" then
WshSHell.Run("CleanDesktop.SCF")
end if
WScript.Sleep 500
WshSHell.SendKeys "{F5}+{F10}e"
WshSHell.SendKeys "+{F10}IT"
Set WshSHell = Nothing
Set FSO = Nothing
WScript.Quit