2012年8月11日土曜日

RHash 右鍵選單 REG+VBS

REG 部份:(VBS 的路徑要設定)
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\RHash]

[HKEY_CLASSES_ROOT\*\shell\RHash\command]
@="wscript.exe C:\\portable\\RHash.vbs \"%1\""
VBS 部份:(RHash 主程式的路徑要設定)
Set WshShell = WScript.CreateObject("WScript.Shell")
Dim argument(2)
argument(0) = "C:\portable\RHash-1.2.9-win64\rhash.exe" 'application path
Dim argumentselect
Do
argumentselect = InputBox("1 = MD5" &Chr(10) & _
                          "2 = SHA1" &Chr(10) & _
                          "3 = ED2K" &Chr(10) & _
                          "4 = CHECK" &Chr(10) & _
                          "Select Feature (Other Number=Exit)" , _
                          "Input A Number For Your Choice")
Loop While IsNumeric(argumentselect) = Flase
Select Case argumentselect
Case 1
 argument(1) = "-M"
Case 2
 argument(1) = "-H"
Case 3
 argument(1) = "-E"
Case 4
 argument(1) = "-c"
Case else
 WScript.Quit
End select
argument(2) = WScript.Arguments.Item(0)
Return = WshShell.run("%COMSPEC% /u /k" &Chr(32) &argument(0) _
                                        &Chr(32) &argument(1) _
                                        &Chr(32) &Chr(34) &argument(2) &Chr(34) , 1 , True)

2012年8月5日日曜日

CMD 輸出至 VIM

目錄按右鍵後 會有選單把該目錄檔名輸出至 VIM
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\Vim(Directory)]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\Vim(Directory)\command]
@="\"C:\\Program Files (x86)\\Vim\\vim73\\gvim.exe\" \"+se shellcmdflag=/u/c\" \"+se enc=ucs-2le\" \"+lcd %1\" \"+0read !dir/on\""

Microsoft AppLocale Utility VBS 啟動範本

本來是用登錄檔做成右鍵選單
只是後來覺得雙擊還是比較方便使用

Set WshShell = WScript.CreateObject("WScript.Shell")
Dim argument(2)
argument(0) = "C:\Windows\AppPatch\AppLoc.exe"
argument(1) = "" 'application path(執行程式的完整路徑和檔名)
argument(2) = "" 'taiwan(/L0404),prc(/L0804),japan(/L0411),korea(/L0412) (想要執行的語系)
Return = WshShell.Run(argument(0) &Chr(32) _
                     &argument(1) &Chr(32) _
                     &argument(2) , 1, true)

2012年8月3日金曜日

Avira Free Antivirus (12) Disable Scheduler Service

Version : 12.0.0.1167

Extras -> Configuration
Expert mode -> Selected
General -> Security -> Product protection -> Protect files and registry entries from manipulation -> Not selected

cmd (require admin)
sc config AntiVirSchedulerService start= disabled

then reboot , it will disabled (only supply start , so need reboot)

***

when manual update VDF , require scheduler service

cmd (require admin)
sc config AntiVirSchedulerService start= auto
sc start AntiVirSchedulerService

this step will start scheduler service and can't stop
so when VDF update success , need disable scheduler service start mode and reboot

ps : can use services.msc to change start mode(auto/disabled)