ptcflush.bat

来自「proe5.0野火版下载(中文版免费下载)」· Batch 代码 · 共 66 行

BAT
66
字号
@echo off

set MC=unset
if "%PROCESSOR%" == "INTEL_64" set MC=ia64_nt
if "%PROCESSOR%" == "INTEL_486" set MC=i486_nt
if "%PROCESSOR_ARCHITECTURE%" == "IA64" set MC=ia64_nt
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" set MC=x86e_win64
if "%PROCESSOR_ARCHITECTURE%" == "x86" set MC=i486_nt
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=INTEL_486     - For Windows NT Intel based machines.
echo.
echo set PROCESSOR=INTEL_64      - For Windows Intel Itanium based machines.
echo.
echo set PROCESSOR_ARCHITECTURE=AMD64 - For Windows AMD 64 based machines.
echo.
exit
:mc_done

set PRO_MACHINE_TYPE=%MC%

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

set start_cmd=start ""

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

set path=%PRO_DIRECTORY%\bin;%path%

set PTCPATH=true
:ptcpathset


if NOT "%mc%" == "x86e_win64" goto x86do
if EXIST "%prodir%\%mc%\obj\lmutil.exe" goto x86do
set MC=i486_nt
:x86do

REM ptc-cmdtype: lmgrd

set LM_LICENSE_FILE=C:\license.dat
set PRO_LICENSE_RES=%PRO_DIRECTORY%\text\licensing\license.res

set missargs=false
if "%1" == "" set missargs=true
if "%2" == "" set missargs=true
if "%3" == "" set missargs=true
if "%4" == "" set missargs=true
if "%missargs%" == "false" goto ok_to_run
   echo Usage: ptcflush [feature] [license server] [port] [handle]
   echo Example: ptcflush PROE_1234 ptchost 7788 213
   echo   All arguments to ptcflush can be taken from the
   echo   output of ptcstatus
   goto ptc_end
:ok_to_run
"%PRODIR%\%MC%\obj\lmutil" lmremove -h %1 %2 %3 %4 %5
:ptc_end
exit /B %ERRORLEVEL%

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?