批处理的两句代码不懂,求解释 set p=%~dp0sublime_text.exe set paths=%p:\=\\%
@echooffechoWindowsRegistryEditorVersion5.00>sublime.regecho[HKEY_CLASSES_ROOT\*\shel...
@echo off
echo Windows Registry Editor Version 5.00 > sublime.reg
echo [HKEY_CLASSES_ROOT\*\shell\SublimeText2] >> sublime.reg
echo @="SublimeText2(&W)" >>sublime.reg
echo [HKEY_CLASSES_ROOT\*\shell\SublimeText2\command] >> sublime.reg
set p=%~dp0sublime_text.exe
set paths=%p:\=\\%
echo @="%paths% %%1" >>sublime.reg
sublime.reg&&del sublime.reg 展开
echo Windows Registry Editor Version 5.00 > sublime.reg
echo [HKEY_CLASSES_ROOT\*\shell\SublimeText2] >> sublime.reg
echo @="SublimeText2(&W)" >>sublime.reg
echo [HKEY_CLASSES_ROOT\*\shell\SublimeText2\command] >> sublime.reg
set p=%~dp0sublime_text.exe
set paths=%p:\=\\%
echo @="%paths% %%1" >>sublime.reg
sublime.reg&&del sublime.reg 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询