无忧启动论坛

标题: WinBuilder的脚本.Script怎么还原其内的文件 [打印本页]

作者: freesoft00    时间: 2017-11-21 21:55
标题: WinBuilder的脚本.Script怎么还原其内的文件

http://theoven.org/index.php?topic=2291.msg24734#new
MBR2GPT_BobOmb_CMD_v2.Script
想看一下它的cmd。不知道如何转换回去。
作者: nttwqz    时间: 2017-11-21 22:42
楼主英语不错啊,估计可能都破天荒的到了九级了!
作者: freesoft00    时间: 2017-11-21 23:52
nttwqz 发表于 2017-11-21 22:42
楼主英语不错啊,估计可能都破天荒的到了九级了!

bing、百度、来回用。初中水平都不到。
作者: slore    时间: 2017-11-22 00:18
看样子像base64试着用vbs解过。
你发的这个解出来乱码了,直接用winbuilder的wbzip解出来解过是:
  1. @ECHO OFF
  2. CLS
  3. TITLE EasyMBR2GPT
  4. :PRIVILEGECHECK
  5. NET SESSION >nul 2>&1
  6. IF %errorlevel% == 0 (
  7. GOTO PREPARE
  8. ) else (
  9. ECHO Convert Disk from MBR ^(CSM/Legacy^) to GPT^(UEFI/Secure Boot^)
  10. ECHO -----------------------------------------------------------
  11. ECHO           Warning, Elevated Privilege is Required
  12. ECHO.                                       
  13. ECHO                 RE-OPEN AS AN ADMINISTRATOR        
  14. ECHO                  THE PROGRAM WILL NOW EXIT
  15. ECHO.
  16. ECHO -----------------------------------------------------------
  17. ECHO.
  18. PAUSE
  19. EXIT
  20. )
  21. :PREPARE
  22. IF NOT EXIST "%userprofile%\Desktop\MBR2GPT-Logs" MD "%userprofile%\Desktop\MBR2GPT-Logs"
  23. :INITIALIZE
  24. CLS
  25. ECHO Convert Disk from MBR ^(CSM/Legacy^) to GPT^(UEFI/Secure Boot^)
  26. ECHO -----------------------------------------------------------
  27. ECHO list disk > list.txt
  28. diskpart /s list.txt
  29. DEL list.txt>nul
  30. ECHO.
  31. SET /p disk="Which disk number would you like to convert? (e.g. 0): "
  32. ECHO.
  33. ECHO --WARNING-- Once converted the disk will not longer boot in CSM-Legacy mode.
  34. ECHO             Make sure to set your bios settings to UEFI / Secure Boot: ON
  35. ECHO.
  36. ECHO You selected disk ---^> %disk%
  37. ECHO.
  38. CHOICE /C YN /M "Is this correct "
  39. IF %ERRORLEVEL% == 1 GOTO VALIDATE
  40. CLS
  41. ECHO Convert Disk from MBR ^(CSM/Legacy^) to GPT^(UEFI/Secure Boot^)
  42. ECHO -----------------------------------------------------------
  43. ECHO.
  44. ECHO Conversion Aborted, No changes have been made...
  45. ECHO.
  46. PAUSE
  47. EXIT
  48. :VALIDATE
  49. CLS
  50. ECHO Convert Disk from MBR ^(CSM/Legacy^) to GPT^(UEFI/Secure Boot^)
  51. ECHO -----------------------------------------------------------
  52. ECHO.
  53. ECHO Validation in progress...
  54. ECHO.
  55. MBR2GPT /validate /disk:%disk% /logs:%userprofile%\Desktop\MBR2GPT-Logs
  56. IF %ERRORLEVEL% == 0 GOTO VSUCCESS
  57. IF %ERRORLEVEL% == 1 GOTO VCANCELLED
  58. IF %ERRORLEVEL% == 2 GOTO VINTERR
  59. IF %ERRORLEVEL% == 3 GOTO VINITERR
  60. IF %ERRORLEVEL% == 4 GOTO VINVCMD
  61. IF %ERRORLEVEL% == 5 GOTO VREADGEO
  62. IF %ERRORLEVEL% == 6 GOTO VENCRYPTED
  63. IF %ERRORLEVEL% == 7 GOTO VNOREQGEO
  64. GOTO UNKNOWNERROR
  65. :VSUCCESS
  66. ECHO.
  67. ECHO --WARNING-- This process is irreversable!!
  68. ECHO.
  69. CHOICE /C YN /M "Are you sure you want to continue the conversion "
  70. IF %ERRORLEVEL% == 1 GOTO RUN
  71. CLS
  72. ECHO Convert Disk from MBR ^(CSM/Legacy^) to GPT^(UEFI/Secure Boot^)
  73. ECHO -----------------------------------------------------------
  74. ECHO.
  75. ECHO Conversion Aborted, No changes have been made...
  76. ECHO.
  77. PAUSE
  78. EXIT
  79. :RUN
  80. CLS
  81. ECHO Convert Disk from MBR ^(CSM/Legacy^) to GPT^(UEFI/Secure Boot^)
  82. ECHO -----------------------------------------------------------
  83. ECHO.
  84. ECHO Conversion in progress...
  85. ECHO.
  86. MBR2GPT /convert /disk:%disk% /logs:%userprofile%\Desktop\MBR2GPT-Logs
  87. ECHO.
  88. IF %ERRORLEVEL% == 0 GOTO SUCCESS
  89. IF %ERRORLEVEL% == 1 GOTO CANCELLED
  90. IF %ERRORLEVEL% == 2 GOTO INTERR
  91. IF %ERRORLEVEL% == 3 GOTO INITERR
  92. IF %ERRORLEVEL% == 4 GOTO INVCMD
  93. IF %ERRORLEVEL% == 5 GOTO READGEO
  94. IF %ERRORLEVEL% == 6 GOTO ENCRYPTED
  95. IF %ERRORLEVEL% == 7 GOTO NOREQGEO
  96. IF %ERRORLEVEL% == 8 GOTO ERRCREATE
  97. IF %ERRORLEVEL% == 9 GOTO INSTBOOT
  98. IF %ERRORLEVEL% == 10 GOTO ALAYOUT
  99. IF %ERRORLEVEL% == 100 GOTO NOCOMP
  100. GOTO UNKNOWNERROR
  101. :VCANCELLED
  102. ECHO.
  103. ECHO Verification was canceled by the user.
  104. ECHO.
  105. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  106. ECHO.
  107. PAUSE
  108. EXIT
  109. :VINTERR
  110. ECHO.
  111. ECHO Verification failed due to an internal error.
  112. ECHO.
  113. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  114. ECHO.
  115. PAUSE
  116. EXIT
  117. :VINITERR
  118. ECHO.
  119. ECHO Verification failed due to an initialization error.
  120. ECHO.
  121. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  122. ECHO.
  123. PAUSE
  124. EXIT
  125. :VINVCMD
  126. ECHO.
  127. ECHO Verification failed due to invalid command-line
  128. ECHO parameters.
  129. ECHO.
  130. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  131. ECHO.
  132. PAUSE
  133. EXIT
  134. :VREADGEO
  135. ECHO.
  136. ECHO Verification failed due to error reading the geometry.
  137. ECHO.
  138. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  139. ECHO.
  140. PAUSE
  141. EXIT
  142. :VENCRYPTED
  143. ECHO.
  144. ECHO Verification failed because one or more volumes on the
  145. ECHO disk is encrypted.
  146. ECHO.
  147. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  148. ECHO.
  149. PAUSE
  150. EXIT
  151. :VNOREQGEO
  152. ECHO.
  153. ECHO Verification failed because the geometry and layout of
  154. ECHO the selected disk do not meet requirements.
  155. ECHO.
  156. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  157. ECHO.
  158. PAUSE
  159. EXIT
  160. :SUCCESS
  161. ECHO Conversion completed successfully. Make sure to change
  162. ECHO your BIOS settings.
  163. ECHO.
  164. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  165. ECHO.
  166. PAUSE
  167. EXIT
  168. :CANCELLED
  169. ECHO Conversion was canceled by the user.
  170. ECHO.
  171. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  172. ECHO.
  173. PAUSE
  174. EXIT
  175. :INTERR
  176. ECHO Conversion failed due to an internal error.
  177. ECHO.
  178. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  179. ECHO.
  180. PAUSE
  181. EXIT
  182. :INITERR
  183. ECHO Conversion failed due to an initialization error.
  184. ECHO.
  185. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  186. ECHO.
  187. PAUSE
  188. EXIT
  189. :INVCMD
  190. ECHO Conversion failed due to invalid command-line
  191. ECHO parameters.
  192. ECHO.
  193. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  194. ECHO.
  195. PAUSE
  196. EXIT
  197. :READGEO
  198. ECHO Conversion failed due to error reading the geometry.
  199. ECHO.
  200. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  201. ECHO.
  202. PAUSE
  203. EXIT
  204. :ENCRYPTED
  205. ECHO Conversion failed because one or more volumes on the
  206. ECHO disk is encrypted.
  207. ECHO.
  208. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  209. ECHO.
  210. PAUSE
  211. EXIT
  212. :NOREQGEO
  213. ECHO Conversion failed because the geometry and layout of
  214. ECHO the selected disk do not meet requirements.
  215. ECHO.
  216. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  217. ECHO.
  218. PAUSE
  219. EXIT
  220. :ERRCREATE
  221. ECHO Conversion failed due to error while creating the EFI
  222. ECHO system partition.
  223. ECHO.
  224. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  225. ECHO.
  226. PAUSE
  227. EXIT
  228. :INSTBOOT
  229. ECHO Conversion failed due to error installing boot files.
  230. ECHO.
  231. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  232. ECHO.
  233. PAUSE
  234. EXIT
  235. :ALAYOUT
  236. ECHO Conversion failed due to error while applying GPT
  237. ECHO layout.
  238. ECHO.
  239. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  240. ECHO.
  241. PAUSE
  242. EXIT
  243. :NOCOMP
  244. ECHO Conversion to GPT layout succeeded, but some boot
  245. ECHO configuration data entries could not be restored.
  246. ECHO.
  247. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  248. ECHO.
  249. PAUSE
  250. EXIT
  251. :UNKNOWNERROR
  252. ECHO An unknown error occured.
  253. ECHO.
  254. ECHO Logfiles located at %userprofile%\Desktop\MBR2GPT-Logs
  255. ECHO.
  256. PAUSE
  257. EXIT
  258.                                    
复制代码

作者: nttwqz    时间: 2017-11-22 09:07
slore 发表于 2017-11-22 00:18
看样子像base64试着用vbs解过。
你发的这个解出来乱码了,直接用winbuilder的wbzip解出来解过是:

长见识了!
作者: nttwqz    时间: 2017-11-22 09:08
本帖最后由 nttwqz 于 2017-11-22 09:10 编辑

不过,如果真是这样,这个批处理里面好像就这一句主要,楼主完全可以自己写一个
作者: nttwqz    时间: 2017-11-22 09:09
总是自动跳转到触屏版,触屏版还不支持回车
作者: nttwqz    时间: 2017-11-22 09:09
MBR2GPT /convert /disk:%disk% /logs:%userprofile%\Desktop\MBR2GPT-Logs
作者: freesoft00    时间: 2017-11-22 16:49
偶点失望,没有什么营养的代码
作者: sp_star    时间: 2017-11-22 21:51
可以写一个简单的winbuilder脚本,用ExtractFile或ExtractAllFiles指令解出来




欢迎光临 无忧启动论坛 (http://wuyou.net./) Powered by Discuz! X3.3