复制代码
- @echo off
- Reg add "HKCR\*\shell\Rentohtml" /ve /t REG_SZ /d "改后缀为HTML" /f
- Reg add "HKCR\*\shell\rentohtml\command" /ve /t REG_SZ /d "%~dp0rentohtml.bat \"%%1\"" /f>NUL
- set "a=%1"
- set "b=%~n1"
- ren %a% "%b%".html
- exit
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |