中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-23 16:04
47,812 topics / 349,917 posts / today 0 new / 48,273 members
DOS批处理 & 脚本技术(批处理室) » A Doubt about a PRO/E Configuration Batch Processing
Printable Version  1,932 / 8
Floor1 lrb Posted 2005-12-21 16:15
初级用户 Posts 17 Credits 51
Moderator\expert help, can you explain what the following batch processing writes? Thank you!


@echo off

if NOT "%PTC_BMODE%" == "" goto skipifbmode

@echo off

set MC=unset
if "%PROCESSOR%" == "INTEL_64" set MC=ia64_nt
if "%PROCESSOR%" == "INTEL_486" set MC=i486_nt
if "%PROCESSOR%" == "MIPS_R4000" set MC=r4000_nt
if "%PROCESSOR%" == "Alpha_AXP" set MC=alpha_nt
if "%PROCESSOR_ARCHITECTURE%" == "IA64" set MC=ia64_nt
if "%PROCESSOR_ARCHITECTURE%" == "x86" set MC=i486_nt
if "%PROCESSOR_ARCHITECTURE%" == "MIPS" set MC=r4000_nt
if "%PROCESSOR_ARCHITECTURE%" == "ALPHA" set MC=alpha_nt
if not "%winbootdir%" == "" set mc=i486_win95
if not "%MC%" == "unset" goto mc_done
echo ERROR Cannot detect what machine type you have.
echo Please make one of the following settings:
echo.
echo set PROCESSOR=Alpha_AXP - For Windows NT Alpha based machines.
echo.
echo set PROCESSOR=MIPS_R4000 - For Windows NT MIPS based machines.
echo.
echo set PROCESSOR=INTEL_486 - For Windows NT Intel based machines.
echo.
echo set PROCESSOR=INTEL_64 - For Windows Intel Itanium based machines.
echo.
echo set winbootdir=<boot dir> - For Windows 95/98 machines.
echo.
exit
:mc_done

if NOT "%mc%" == "i486_win95" goto postenv4096
if "%env4096%" == "true" goto postenv4096
set env4096=true
command.com /E:4096 /C %0 %1 %2 %3 %4 %5 %6 %7 %8 %9
set env4096=
goto ptc_end
:postenv4096

set PRO_MACHINE_TYPE=%MC%

if "%PROOBJ_START_DIRECTORY%" == "" set PRO_DIRECTORY=
if NOT "%PRO_DIRECTORY%" == "" "%PRO_DIRECTORY%\bin\%MC%_ptc_setvars" %0 "proe2001" bat
if "%PRO_DIRECTORY%" == "" %MC%_ptc_setvars %0 "proe2001" bat
call ptc_setvars.bat
del ptc_setvars.bat

if NOT "%mc%" == "i486_win95" set start_cmd=start ""
if "%mc%" == "i486_win95" set start_cmd=start

set PRO_DIRECTORY=%PRODIR%
if NOT "%PTCPATH%" == "" goto ptcpathset

if NOT "%mc%" == "i486_win95" goto not95
set path="%PRO_DIRECTORY%\bin;%path%"
goto pathdone
:not95
set path=%PRO_DIRECTORY%\bin;%path%
:pathdone

set PTCPATH=true
:ptcpathset


REM ptc-cmdtype: proe

if NOT "%INTRALINK_DIR%" == "" goto ptidir
set INTRALINK_DIR=__INTRALINK_DIR__
:ptidir


if NOT exist "%INTRALINK_DIR%\%MC%\illib\proilws.dll" goto ptcdefpathset
if NOT "%mc%" == "i486_win95" goto not95two
set path="%INTRALINK_DIR%\%MC%\illib;%path%"
goto pdtwo
:not95two
set path=%INTRALINK_DIR%\%MC%\illib;%path%
:pdtwo
goto ptcilibpathset
:ptcdefpathset
if NOT "%mc%" == "i486_win95" goto not95thr
set path="%path%;%PRO_DIRECTORY%\%MC%\deflib"
goto pdthree
:not95thr
set path=%path%;%PRO_DIRECTORY%\%MC%\deflib
:pdthree
:ptcilibpathset

if NOT "%mc%" == "i486_win95" goto not95for
set path="%path%;%PRO_DIRECTORY%\%MC%\lib"
goto pdfour
:not95for
set path=%path%;%PRO_DIRECTORY%\%MC%\lib
:pdfour

set PRONCPOST_START=propostq

if "%PTCNMSPORT%" == "" set PTCNMSPORT=1239
"%prodir%\%mc%\nms\nmsq.exe" -quiet -ping
if "%NMSD_TIMEOUT%" == "" set NMSD_TIMEOUT=300
if ERRORLEVEL 1 %start_cmd% /min "%PRO_DIRECTORY%\%MC%\nms\nmsd.exe" -noservice -timeout %NMSD_TIMEOUT%

set PRO_COMM_MSG_EXE=%prodir%\%mc%\obj\pro_comm_msg.exe
set PROE_START=%prodir%\bin\proe2001.bat

if "%CDRS_DATA%" == "" set CDRS_DATA=%prodir%
set PRO_IMAGE_CONVERTER=%prodir%\%mc%\obj\convert_image.exe
set PRO_PHOTORENDER=%prodir%\%mc%\obj\PhotoRender.exe

set GALAXYHOME=%prodir%\%mc%

set PROGUIDE_DIRECTORY=%prodir%\uifdoc
set SPG_DIRECTORY=%\prodir%
set PRO_USRMAIN=%prodir%\usrprog\umain\usrmain.c
set PROTABLE_DIRECTORY=%prodir%\protable
set PROTAB=%prodir%\%mc%\obj\protab.exe
set CLHOME=%prodir%\text\pcldata
set CV_ENV_HOME=%prodir%\%mc%\CV110

if NOT "%LM_LICENSE_FILE%" == "" set LM_LICENSE_FILE=c:\Program Files\proe2001\CRACK\license.dat;%LM_LICENSE_FILE%
if "%LM_LICENSE_FILE%" == "" set LM_LICENSE_FILE=c:\Program Files\proe2001\CRACK\license.dat
set PROE_FEATURE_NAME=PROE_1134265

if exist "%PRO_DIRECTORY%\install\nt\pro_mech_loc.bat" set PRO_MECH_COMMAND=%0
if exist "%PRO_DIRECTORY%\install\nt\pro_mech_loc.bat" call "%PRO_DIRECTORY%\install\nt\pro_mech_loc.bat"
if NOT exist "%PRO_DIRECTORY%\install\nt\pro_mech_loc.bat" goto nomechloc
if exist "%MECH_LP%\install\nt\pro_mech_env.bat" call "%MECH_LP%\install\nt\pro_mech_env.bat"
:nomechloc

:skipifbmode

set slashb=
if %MC% == i486_nt set slashb=/b
if %MC% == r4000_nt set slashb=/b
if %MC% == alpha_nt set slashb=/b

set slashw=
if "%1" == "pro_wait" set slashw=/w
if "%2" == "pro_wait" set slashw=/w
if "%3" == "pro_wait" set slashw=/w
if "%4" == "pro_wait" set slashw=/w
if "%5" == "pro_wait" set slashw=/w
if "%6" == "pro_wait" set slashw=/w

if "%1" == "-v" set slashw=/w
if "%2" == "-v" set slashw=/w
if "%3" == "-v" set slashw=/w
if "%4" == "-v" set slashw=/w
if "%5" == "-v" set slashw=/w
if "%6" == "-v" set slashw=/w

if exist "%PRO_DIRECTORY%\ptc_startup.bat" call "%PRO_DIRECTORY%\ptc_startup.bat"
if exist "%HOMEDRIVE%\%HOMEPATH%\ptc_startup.bat" call "%HOMEDRIVE%\%HOMEPATH%\ptc_startup.bat"
if exist ".\ptc_startup.bat" call ".\ptc_startup.bat"

REM %start_cmd% "%PRO_DIRECTORY%\%MC%\obj\portmap.exe" -noservice
%start_cmd% %slashb% %slashw% "%PRO_DIRECTORY%\%MC%\obj\xtop" %1 %2 %3 %4 %5 %6
:ptc_end
Floor2 lrb Posted 2005-12-21 16:16
初级用户 Posts 17 Credits 51
It's best to explain each sentence for me! I'm extremely grateful!
Floor3 qq314 Posted 2005-12-21 16:33
初级用户 Posts 66 Credits 184
It's a BAT file, I once saw its detailed introduction on the Internet, you can look for it, he he
Floor4 gmy Posted 2005-12-21 16:50
版主 Posts 392 Credits 1,113
Really miss the era without the Internet, can study some basic knowledge steadfastly in the ocean of books. The basic skills of modern young people are too poor.
Floor5 220110 Posted 2005-12-21 16:53
荣誉版主 Posts 313 Credits 718
From the files like proilws.dll, etc., this is a.bat file for the startup or installation of PRO/E. But it seems a bit limited. Why is there no support for AMD CPUs? It has already supported 64-bit CPUs above. I don't understand.... I don't want to explain in detail. I'm limited in level and don't want to mislead people.
Floor6 lrb Posted 2005-12-22 08:35
初级用户 Posts 17 Credits 51
Originally posted by gmy at 2005-12-21 16:50:
Really miss the era without the Internet, can study some basic knowledge steadfastly in the ocean of books. The basic knowledge of modern young people is too poor.

If the boss is willing to help me, please give guidance, not just a sentence that belittles others and elevates oneself. This is not the style of a forum administrator! It is precisely because I have doubts that I will ask! Should I be humble to learn from all the great experts and heroes? However, I still need to thank your sincere advice and good medicine! Thanks here!
Floor7 lrb Posted 2005-12-22 08:36
初级用户 Posts 17 Credits 51
Originally posted by 220110 at 2005-12-21 16:53:
From files like proilws.dll, this is a .bat file for the startup or installation of PRO/E.
But it seems a bit limited. Why isn't there support for AMD CPUs? It already supports 64-bit U. Confused....
Duo...

Thank you! Can you go a bit deeper?
Floor8 willsort Posted 2005-12-22 11:32
元老会员 Posts 1,512 Credits 4,432
Re lrb:

From the content of the entire text, it should be the batch processing for the startup or installation environment configuration of PRO/E mentioned by Brother 220110. This program only plays the role of variable setting and program entry. The batch processing syntax used is very basic. It is neither necessary nor very difficult to explain sentence by sentence (mainly the meaning of variables and the role of the entry program), because it requires a considerable understanding of PRO/E! I'm powerless!
Floor9 lrb Posted 2005-12-22 12:41
初级用户 Posts 17 Credits 51
Thanks, Brother willsort. What you said is correct. This is the startup batch file of PRO/E 2001. Because I work with 2001, I really want to analyze it. I have in-depth knowledge and application of 2001, but I'm not very familiar with batch processing, so I asked everyone for help! I also really want to deeply understand batch processing and DOS!

Especially I don't understand some parameters in this batch file!

[ Last edited by lrb on 2005-12-22 at 12:43 ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023