原帖由 Batcher 于 2008-10-5 18:29 发表
有没有具体的例子来说明“结果大不相同”?
本文代码转换结果:
- reg add "HKCR\lnkfile" /v @ /t REG_SZ /d "快捷方式" /f
- reg add "HKCR\lnkfile" /v "EditFlags" /t REG_DWORD /d 00000001 /f
- reg add "HKCR\lnkfile" /v "NeverShowExt" /t REG_SZ /d "" /f
- reg add "HKCR\lnkfile\CLSID" /v @ /t REG_SZ /d "{00021401-0000-0000-C000-000000000046}" /f
- reg add "HKCR\lnkfile\shellex\ContextMenuHandlers\Offline Files" /v @ /t REG_SZ /d "{750fdf0e-2a26-11d1-a3ea-080036587f03}" /f
- reg add "HKCR\lnkfile\shellex\DropHandler" /v @ /t REG_SZ /d "{00021401-0000-0000-C000-000000000046}" /f
- reg add "HKCR\lnkfile\shellex\IconHandler" /v @ /t REG_SZ /d "{00021401-0000-0000-C000-000000000046}" /f
- reg add "HKCR\lnkfile\shellex\PropertySheetHandlers\ShimLayer Property Page" /v @ /t REG_SZ /d "{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}" /f
-
复制代码
软件转换结果如下:
-
- @ECHO OFF
- > "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile]
- >>"%Temp%.\DefOpen.reg" ECHO @="快捷方式"
- >>"%Temp%.\DefOpen.reg" ECHO "EditFlags"=dword:00000001
- >>"%Temp%.\DefOpen.reg" ECHO "NeverShowExt"=""
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\CLSID]
- >>"%Temp%.\DefOpen.reg" ECHO @="{00021401-0000-0000-C000-000000000046}"
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\shell]
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\shellex]
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers]
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\Offline Files]
- >>"%Temp%.\DefOpen.reg" ECHO @="{750fdf0e-2a26-11d1-a3ea-080036587f03}"
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\{00021401-0000-0000-C000-000000000046}]
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\shellex\DropHandler]
- >>"%Temp%.\DefOpen.reg" ECHO @="{00021401-0000-0000-C000-000000000046}"
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\shellex\IconHandler]
- >>"%Temp%.\DefOpen.reg" ECHO @="{00021401-0000-0000-C000-000000000046}"
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\shellex\PropertySheetHandlers]
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
- >>"%Temp%.\DefOpen.reg" ECHO @="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\SuperMenu_Bak1]
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CLASSES_ROOT\lnkfile\SuperMenu_Bak1\{00021401-0000-0000-C000-000000000046}]
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO.
- START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
- DEL "%Temp%.\DefOpen.reg"
复制代码
|