轉(zhuǎn)換數(shù)模格式時(shí),,除了使用繪圖軟件和CrossManager外,還經(jīng)常用到批處理文件(.bat文件) jt to cojt @echo off @echo trans jt to cojt for /f 'tokens=1* delims=.' %%J in ('dir /b *.jt') do ( if not exist '%%J\' md '%%J.cojt' move /-y '%%J.jt' '%%J.cojt' ) pause co to jt cls @echo off @echo trans co to jt and move original co to folder origin_co pause REM get the directory and use the application cd>leo.txt set /p X=<> upgradetoversion -dir %X%\ -co2jt REM move original co into folder origin_co md %X%\origin_co for /f %%Y in ('dir /b *.co') do ( move %%Y %X%\origin_co ) REM delete tempory txt used for get directory del leo.txt pause 當(dāng)然也有cojt to co @echo off @echo trans cojt to co and put in folder new_co md new_co for /f 'tokens=1* delims=.' %%J in ('dir /b *.cojt') do ( move %%J.cojt\%%J.jt new_co ) cd /d new_co for /f 'tokens=1* delims=.' %%Q in ('dir /b *.jt') do ( txjt2co %%Q.jt ) pause CATIA to CO cls @echo Transform CATIA to CO pause @echo off Cat5In_PC *.CATPart* -approxTolerance 0.7 del *.Prototypes del *.log del *.xml pause dxf to co cls '此命令只能和一個(gè)單獨(dú)的DXF文件放如同一個(gè)文件夾,里面不能有其他任何東西.' '想繼續(xù),請(qǐng)按任意鍵!!!' pause @echo off to unix *.dxf *.dxf dxfin *.dxf * 鏈接:https://pan.baidu.com/s/1tiHun8NMQErYoTTLtFgQIw 密碼:7wpu |
|
來(lái)自: cqyulin > 《數(shù)據(jù)轉(zhuǎn)換》