Board logo

标题: [文件操作] 求批处理在工业电脑DOS里32位程序转换64位程序的命令 [打印本页]

作者: szqever    时间: 2022-3-14 08:37     标题: 求批处理在工业电脑DOS里32位程序转换64位程序的命令

小弟刚开始接触,不懂,哪位大侠给个批处理命令呗!!!!!!感谢!!!!!
这是一个在工业电脑DOS里32位程序转换64位程序的命令,要求如下:
1.想全程显示DOS命令窗口
2.进入 D:\OE\DataManager
3.运行 DMToolCmd.exe –convertdb D:\BIT\(这个里面的文件较多,需要一个一个手动输入文件名)
4.接着会显示有没有转换成功
5.加入不想转换输一个字符退出
作者: for_flr    时间: 2022-3-14 09:04

本帖最后由 for_flr 于 2022-3-14 14:39 编辑
  1. @echo off
  2. cd /d D:\OE\DataManager
  3. :loop
  4. echo;输入待处理路径,进行批量转换
  5. set /p path=:
  6. if /i "%path%"=="q" exit/b
  7. if not exist %path% echo;路径有误&goto loop
  8. for /f "delims=" %%a in ('dir /b /s %path%') do (
  9. DMToolCmd.exe –convertdb %%a
  10. )
  11. pause
复制代码

作者: szqever    时间: 2022-3-14 09:21

回复 2# for_flr

大侠你好,请教一下:这个DMToolCmd.exe –convertdb <path-to-process-program>\<process-program-name.set>命令是在D:\OE\DataManager里面的。
我看到好像没有路径,谢谢大哥。
作者: szqever    时间: 2022-3-14 09:30

IMPORTANT: The following steps must be performed on 32-bit Platform.
1. Upgrade the DataManager to 10.2.X or later
(DMToolCmd.exe is available only in 10.X.X version onwards)
2. Open a Command Prompt (press Windows key or CTRL + ESC  Type cmd  ENTER)
3. Type D: and navigate to D: DRIVE
4. Type cd oe\Datamanager – navigates to DataManager folder as below:
5. Type the conversion command following the below usage:
DMToolCmd.exe –convertdb <path-to-process-program>\<process-program-name.set>
For example:
DMToolCmd.exe –convertdb D:\oe\ProcessPrograms\9.16.3.0-Recipe.set
6. After successful conversion, the following message will be displayed
Scanning folder < path-to-process-program>\<process-program-name.set>…
Converting bondhead1.pp… (for PowerFusion Single Head & Asterion)
Converting bondhead2.pp… (for PowerFusion Dual Head)
Done: 2/2 converted.
作者: Batcher    时间: 2022-3-14 10:36

回复 1# szqever


test1.bat
  1. @echo off
  2. D:
  3. cd OE\DataManager
  4. DMToolCmd.exe –convertdb D:\BIT\1.set
  5. DMToolCmd.exe –convertdb D:\BIT\2.set
  6. DMToolCmd.exe –convertdb D:\BIT\3.set
复制代码

作者: Batcher    时间: 2022-3-14 10:37

回复 1# szqever


test2.bat
  1. @echo off
  2. D:
  3. cd OE\DataManager
  4. for %%i in ("D:\BIT\*.set") do (
  5.     DMToolCmd.exe –convertdb "%%i"
  6. )
复制代码





欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2