-
-
Save webjohnjiang/23851c685575eaddc02b3bb0f3898f3c to your computer and use it in GitHub Desktop.
Revisions
-
hizhengfu revised this gist
Dec 10, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -42,7 +42,7 @@ CLS REG ADD HKEY_CLASSES_ROOT\*\shell\SublimeText /t REG_SZ /d SublimeText /f REG ADD HKEY_CLASSES_ROOT\*\shell\SublimeText\Command /t REG_SZ /d "%cd%\sublime_text.exe \"%%1%%\"" /f REG ADD HKEY_CLASSES_ROOT\Directory\shell\SublimeText /t REG_SZ /d SublimeText /f REG ADD HKEY_CLASSES_ROOT\Directory\shell\SublimeText\Command /t REG_SZ /d "%cd%\sublime_text.exe -n \"%%1%%\"" /f GOTO :END :DEL -
hizhengfu revised this gist
Dec 1, 2013 . No changes.There are no files selected for viewing
-
hizhengfu revised this gist
Dec 1, 2013 . No changes.There are no files selected for viewing
-
hizhengfu revised this gist
Dec 1, 2013 . 1 changed file with 11 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,13 @@ @Echo Off Title SublimeText 右键菜单维护 Pushd %~dp0 If "%PROCESSOR_ARCHITECTURE%"=="AMD64" (Set a="HKLM\SOFTWARE\Wow6432Node\SublimeText\sublimetext_backwnd" /v&Set b=%SystemRoot%\SysWOW64) Else (Set a="HKLM\SOFTWARE\SublimeText\sublimetext_backwnd" /v&Set b=%SystemRoot%\system32) Rd "%b%\test_permission" >nul 2>nul Md "%b%\test_permission" 2>nul||(Echo 请使用右键管理员身份运行&&Pause >nul&&Exit) Rd "%b%\test_permission" >nul 2>nul :START CLS Echo *=========================================================================* @@ -23,7 +23,7 @@ If /I "%Choice%"=="A" Goto ADD If /I "%Choice%"=="D" Goto DEL If /I "%Choice%"=="Q" Exit Goto START :END CLS Echo *=========================================================================* @@ -36,13 +36,16 @@ Echo *=========================================================================* Set /P Choice= 请选择要进行的操作 (M/Q) ,然后按回车: If /I "%Choice%"=="M" Goto :START If /I "%Choice%"=="Q" Exit :ADD CLS REG ADD HKEY_CLASSES_ROOT\*\shell\SublimeText /t REG_SZ /d SublimeText /f REG ADD HKEY_CLASSES_ROOT\*\shell\SublimeText\Command /t REG_SZ /d "%cd%\sublime_text.exe \"%%1%%\"" /f REG ADD HKEY_CLASSES_ROOT\Directory\shell\SublimeText /t REG_SZ /d SublimeText /f REG ADD HKEY_CLASSES_ROOT\Directory\shell\SublimeText\Command /t REG_SZ /d "%cd%\sublime_text.exe -a \"%%1%%\"" /f GOTO :END :DEL REG DELETE HKEY_CLASSES_ROOT\*\shell\SublimeText /f REG DELETE HKEY_CLASSES_ROOT\Directory\shell\SublimeText /f GOTO :END -
hizhengfu revised this gist
Nov 19, 2013 . No changes.There are no files selected for viewing
-
hizhengfu renamed this gist
Nov 19, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
hizhengfu revised this gist
Nov 18, 2013 . 1 changed file with 28 additions and 22 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,32 +1,38 @@ @Echo Off Title SublimeText 右键菜单维护 Pushd %~dp0 If "%PROCESSOR_ARCHITECTURE%"=="AMD64" (Set a="HKLM\SOFTWARE\Wow6432Node\SublimeText\sublimetext_backwnd" /v&Set b=%SystemRoot%\SysWOW64) Else (Set a="HKLM\SOFTWARE\SublimeText\sublimetext_backwnd" /v&Set b=%SystemRoot%\system32) Rd "%b%\test_permission" >nul 2>nul Md "%b%\test_permission" 2>nul||(Echo 请使用右键管理员身份运行&&Pause >nul&&Exit) Rd "%b%\test_permission" >nul 2>nul :START CLS Echo *=========================================================================* Echo * * Echo * [A]添加右键菜单 * Echo * [D]删除右键菜单 * Echo * [Q]退出 * Echo * * Echo *=========================================================================* Echo *注意*请右键管理员权限运行: Set /P Choice=请选择要进行的操作 (A/D/Q) ,然后按回车: If /I "%Choice%"=="A" Goto ADD If /I "%Choice%"=="D" Goto DEL If /I "%Choice%"=="Q" Exit Goto START :END CLS Echo *=========================================================================* Echo * * Echo * 操作完成 * Echo * [M]返回主菜单 * Echo * [Q]退出 * Echo * * Echo *=========================================================================* Set /P Choice= 请选择要进行的操作 (M/Q) ,然后按回车: If /I "%Choice%"=="M" Goto :START If /I "%Choice%"=="Q" Exit -
hizhengfu revised this gist
Sep 29, 2013 . No changes.There are no files selected for viewing
-
hizhengfu revised this gist
Sep 29, 2013 . No changes.There are no files selected for viewing
-
hizhengfu revised this gist
Sep 29, 2013 . No changes.There are no files selected for viewing
-
hizhengfu revised this gist
Sep 26, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ cd /d "%~dp0" @echo Off :START CLS -
hizhengfu revised this gist
Jun 13, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,12 +5,12 @@ cd /d "%~dp0" CLS echo *=========================================================================* echo * * echo * [A]添加右键菜单 * echo * [D]删除右键菜单 * echo * [Q]退出 * echo * * echo *=========================================================================* echo *注意*请右键管理员权限运行: Set /P Choice= 请选择要进行的操作 (A/D/Q) ,然后按回车: If /I "%Choice%"=="A" Goto :ADD If /I "%Choice%"=="D" Goto :DEL -
hizhengfu revised this gist
Jun 13, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,7 @@ cd /d "%~dp0" CLS echo *=========================================================================* echo * * echo * 请右键管理员权限运行 * echo * [A]添加右键菜单 * echo * [D]删除右键菜单 * echo * [Q]退出 * -
hizhengfu revised this gist
Jun 13, 2013 . No changes.There are no files selected for viewing
-
hizhengfu revised this gist
Jun 13, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,7 +22,7 @@ CLS echo *=========================================================================* echo * * echo * 操作完成 * echo * [M]返回主菜单 * echo * [Q]退出 * echo * * echo *=========================================================================* -
hizhengfu revised this gist
Jun 13, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,7 @@ If /I "%Choice%"=="Q" Exit :ADD CLS REG ADD HKEY_CLASSES_ROOT\*\shell\SublimeText /t REG_SZ /d SublimeText /f REG ADD HKEY_CLASSES_ROOT\*\shell\SublimeText\Command /t REG_SZ /d "%cd%\sublime_text.exe \"%%1%%\"" /f GOTO :END :DEL -
hizhengfu revised this gist
Jun 13, 2013 . 1 changed file with 17 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ @echo Off cd /d "%~dp0" :START CLS echo *=========================================================================* @@ -15,27 +17,25 @@ If /I "%Choice%"=="Q" Exit START :END CLS echo *=========================================================================* echo * * echo * 操作完成 * echo * [M]返回主菜单 * echo * [Q]退出 * echo * * echo *=========================================================================* Set /P Choice= 请选择要进行的操作 (M/Q) ,然后按回车: If /I "%Choice%"=="M" Goto :START If /I "%Choice%"=="Q" Exit :ADD CLS REG ADD HKEY_CLASSES_ROOT\*\shell\SublimeText /t REG_SZ /d SublimeText /f REG ADD HKEY_CLASSES_ROOT\*\shell\SublimeText\Command /t REG_SZ /d %cd%\sublime_text.exe /f GOTO :END :DEL REG DELETE HKEY_CLASSES_ROOT\*\shell\SublimeText GOTO :END -
hizhengfu renamed this gist
Apr 8, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
hizhengfu renamed this gist
Apr 8, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
hizhengfu created this gist
Apr 8, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,41 @@ @echo Off :START CLS echo *=========================================================================* echo * * echo * [A]添加右键菜单 * echo * [D]删除右键菜单 * echo * [Q]退出 * echo * * echo *=========================================================================* Set /P Choice= 请选择要进行的操作 (A/D/Q) ,然后按回车: If /I "%Choice%"=="A" Goto :ADD If /I "%Choice%"=="D" Goto :DEL If /I "%Choice%"=="Q" Exit START :ADD CLS echo Windows Registry Editor Version 5.00> tmp.reg echo [HKEY_CLASSES_ROOT\*\shell]>> tmp.reg echo [HKEY_CLASSES_ROOT\*\shell\SublimeText]>> tmp.reg echo @="SublimeText">> tmp.reg echo [HKEY_CLASSES_ROOT\*\shell\SublimeText\Command]>> tmp.reg set str=%cd% echo @="%str:\=\\%\\sublime_text.exe \"%%1^\"">> tmp.reg echo *=========================================================================* echo * * echo * 正在将生成的注册信息写入注册表,请点击“是”键钮! * echo * * echo *=========================================================================* tmp.reg del tmp.reg GOTO :START :DEL echo Windows Registry Editor Version 5.00> tmp.reg echo [-HKEY_CLASSES_ROOT\*\shell\SublimeText]>> tmp.reg tmp.reg del tmp.reg GOTO :START