China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 14:57
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » A Doubt about a PRO/E Configuration Batch Processing View 1,807 Replies 8
Original Poster Posted 2005-12-21 16:15 ·  中国 广东 东莞 电信
初级用户
Credits 51
Posts 17
Joined 2005-09-19 14:53
20-year member
UID 42632
Gender Male
Status Offline
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
Floor 2 Posted 2005-12-21 16:16 ·  中国 广东 东莞 电信
初级用户
Credits 51
Posts 17
Joined 2005-09-19 14:53
20-year member
UID 42632
Gender Male
Status Offline
It's best to explain each sentence for me! I'm extremely grateful!
Floor 3 Posted 2005-12-21 16:33 ·  中国 广东 惠州 电信
初级用户
★★
Credits 184
Posts 66
Joined 2005-11-18 15:47
20-year member
UID 45474
Status Offline
It's a BAT file, I once saw its detailed introduction on the Internet, you can look for it, he he
Floor 4 Posted 2005-12-21 16:50 ·  中国 河北 唐山 联通
版主
★★★
操作系统爱好者
Credits 1,113
Posts 392
Joined 2002-11-11 00:00
23-year member
UID 228
Gender Male
Status Offline
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.
DOS之家 http://doshome.com 站长 葛明阳
Floor 5 Posted 2005-12-21 16:53 ·  中国 广东 广州 白云区 电信
荣誉版主
★★★
Credits 718
Posts 313
Joined 2005-09-26 00:00
20-year member
UID 42844
Gender Male
Status Offline
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.
Floor 6 Posted 2005-12-22 08:35 ·  中国 广东 东莞 电信
初级用户
Credits 51
Posts 17
Joined 2005-09-19 14:53
20-year member
UID 42632
Gender Male
Status Offline
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!
Floor 7 Posted 2005-12-22 08:36 ·  中国 广东 东莞 电信
初级用户
Credits 51
Posts 17
Joined 2005-09-19 14:53
20-year member
UID 42632
Gender Male
Status Offline
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?
Floor 8 Posted 2005-12-22 11:32 ·  中国 山西 大同 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
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!
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 9 Posted 2005-12-22 12:41 ·  中国 广东 东莞 电信
初级用户
Credits 51
Posts 17
Joined 2005-09-19 14:53
20-year member
UID 42632
Gender Male
Status Offline
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 ]
Forum Jump: