标题: [文件操作] 求批处理在工业电脑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 编辑
- @echo off
- cd /d D:\OE\DataManager
- :loop
- echo;输入待处理路径,进行批量转换
- set /p path=:
- if /i "%path%"=="q" exit/b
- if not exist %path% echo;路径有误&goto loop
- for /f "delims=" %%a in ('dir /b /s %path%') do (
- DMToolCmd.exe –convertdb %%a
- )
- 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- @echo off
- D:
- cd OE\DataManager
- DMToolCmd.exe –convertdb D:\BIT\1.set
- DMToolCmd.exe –convertdb D:\BIT\2.set
- DMToolCmd.exe –convertdb D:\BIT\3.set
复制代码
作者: Batcher 时间: 2022-3-14 10:37
回复 1# szqever
test2.bat- @echo off
- D:
- cd OE\DataManager
- for %%i in ("D:\BIT\*.set") do (
- DMToolCmd.exe –convertdb "%%i"
- )
复制代码
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |