@echo off title .reg檔案轉換成.bat檔案 Power By yupsky :input echo. set /p regf=請輸入要轉換的登錄檔檔案名稱: if not exist %regf% (echo ... 不存在該檔案! 請重新輸入 && goto input) echo %regf% | find /i ".reg" >nul if errorlevel==1 (echo ... 該檔案不是登錄檔檔案! 請重新輸入 && goto input) echo. echo 請稍候,正在轉換 ... set regb=%regf:~0,-4% echo @echo off>%regb%.bat echo echo.>>%regb%.bat echo echo 程式執行中 ...>>%regb%.bat echo if exist %%temp%%\tmp.reg del /f /q %%temp%%\tmp.reg>>%regb%.bat for /f "tokens=*" %%a in ('type %regf%') do echo echo %%a^>^>%%temp%%\tmp.reg>>%regb%.bat echo regedit /s %%temp%%\tmp.reg>>%regb%.bat echo del /f /q %%temp%%\tmp.reg>>%regb%.bat echo ... 轉換完成! 按任意鍵離開 pause>nul
創作者介紹
創作者 hses 的頭像
hses

hses

hses 發表在 痞客邦 留言(0) 人氣( 1090 )