在CMD里使用npp启动notepad++

顺便把ls=dir也写进去了,保存为bat执行即可

@echo off

@echo doskey ls=dir > %userprofile%\yacautoexec.cmd
@echo doskey npp="c:\Program Files (x86)\Notepad++\notepad++.exe" $* >> %userprofile%\yacautoexec.cmd

reg add "HKCU\Software\Microsoft\Command Processor" /v Autorun /t REG_EXPAND_SZ /d "%userprofile%\yacautoexec.cmd" /f

此处评论已关闭