Autorun.inf
CODE
[AutoRun]
open=START.cmd
icon=wpi.ico
open=START.cmd
icon=wpi.ico
START.cmd
CODE
REGEDIT /S hta.reg
start/wait "" C:\WINDOWS\system32\mshta.exe "%CD%\wpi.hta"
exit
start/wait "" C:\WINDOWS\system32\mshta.exe "%CD%\wpi.hta"
exit
hta.reg
CODE
;thanks Clint
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.hta]
@="hta_auto_file"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\hta_auto_file\shell\open\command]
@="\"C:\\WINDOWS\\system32\\mshta.exe\" \"%1\""
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.hta]
@="hta_auto_file"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\hta_auto_file\shell\open\command]
@="\"C:\\WINDOWS\\system32\\mshta.exe\" \"%1\""
place these 3 files in the WPI directory. they will silently reg mshta.exe and start WPI.hta.