@echo off if not "%ECHO%"=="" echo %ECHO% if not "%OS%"=="Windows_NT" goto DOSEXIT set CONTINUE_FROM_OOS=1 set HOMEDRIVE=D: set HOMEPATH=\%USERNAME% if defined PRO_START_DIR ( echo Gobal definition of "PRO_START_DIR" is used. >> ptcapps.log goto pro_start_dir_defined ) if not exist %HOMEDRIVE%%HOMEPATH%\ptc_startup\nul mkdir %HOMEDRIVE%%HOMEPATH%\ptc_startup set PRO_START_DIR=%HOMEDRIVE%%HOMEPATH%\ptc_startup :pro_start_dir_defined pushd . cd /d %PRO_START_DIR% if defined PROI_LOG ( echo Gobal definition of "PROI_LOG" is used. >> ptcapps.log goto proi_log_dir_defined ) if not exist %HOMEDRIVE%%HOMEPATH%\ptc_startup\proi_logs\nul mkdir %HOMEDRIVE%%HOMEPATH%\ptc_startup\proi_logs set PROI_LOG=%HOMEDRIVE%%HOMEPATH%\ptc_startup\proi_logs :proi_log_dir_defined setlocal for /f "eol=; tokens=1,2,3,4 delims=/ " %%i in ('date /t') do set DATE=%%l-%%j-%%k for /f "eol=; tokens=1 delims= " %%i in ('time /t') do set TIME=%%i echo. > ptcapps.log echo PTC Applications started on %DATE% at %TIME%m by %username%. >> ptcapps.log endlocal if not exist %HOMEDRIVE%%HOMEPATH%\trail_files\nul mkdir %HOMEDRIVE%%HOMEPATH%\trail_files if not exist %HOMEDRIVE%%HOMEPATH%\plot_files\nul mkdir %HOMEDRIVE%%HOMEPATH%\plot_files if defined ILINK_CLIENT_LOADPOINT ( echo Gobal definition of "ILINK_CLIENT_LOADPOINT" is used. >> ptcapps.log goto :ilink_client_loadpoint_defined ) set ILINK_CLIENT_LOADPOINT=%HOMEDRIVE%\ptc_software\proiclient :ilink_client_loadpoint_defined if defined PDM_LDB_PATH ( echo Gobal definition of "PDM_LDB_PATH" is used. >> ptcapps.log goto :pdm_ldb_path_defined ) set PDM_LDB_PATH=%HOMEDRIVE%%HOMEPATH% :pdm_ldb_path_defined if defined PROE_LOADPOINT ( echo Gobal definition of "PROE_LOADPOINT" is used. >> ptcapps.log goto :proe_loadpoint_defined ) set PROE_LOADPOINT=not_installed if exist %HOMEDRIVE%\ptc_software\proe\nul set PROE_LOADPOINT=%HOMEDRIVE%\ptc_software\proe :proe_loadpoint_defined set PATH=%ILINK_CLIENT_LOADPOINT%\bin;%PROE_LOADPOINT%\bin;%PATH% if defined PRO_STDS ( echo Gobal definition of "PRO_STDS" is used. >> ptcapps.log goto :pro_stds_defined ) set PRO_STDS=J:\pro_stand :pro_stds_defined if defined PRO_MASTER_LOADPOINT ( echo Gobal definition of "PRO_MASTER_LOADPOINT" is used. >> ptcapps.log goto :pro_master_loadpoint_defined ) set PRO_MASTER_LOADPOINT=J:\ptc_software :pro_master_loadpoint_defined if defined IEXPLORER_BROWSER ( echo Gobal definition of "IEXPLORER_BROWSER" is used. >> ptcapps.log goto :iexplorer_browser_defined ) if exist C:\Progra~1\Plus!\Micros~1\IEXPLORE.exe set IEXPLORER_BROWSER=C:\Progra~1\Plus!\Micros~1\IEXPLORE.exe if exist C:\Progra~1\Intern~1\IEXPLORE.exe set IEXPLORER_BROWSER=C:\Progra~1\Intern~1\IEXPLORE.exe :iexplorer_browser_defined if defined CM_LOCATION_LOCAL ( echo Gobal definition of "CM_LOCATION_LOCAL" is used. >> ptcapps.log goto :cm_location_local_defined ) if not exist %PDM_LDB_PATH%\.proi\.data\user.data\start mkdir %PDM_LDB_PATH%\.proi\.data\user.data\start set CM_LOCATION_LOCAL=%PDM_LDB_PATH%\.proi\.data\user.data\start :cm_location_local_defined if defined CM_LOCATION_MASTER ( echo Gobal definition of "CM_LOCATION_MASTER" is used. >> ptcapps.log goto :cm_location_master_defined ) set CM_LOCATION_MASTER=%PRO_STDS%\proi_cm_commands :cm_location_master_defined if defined PROE_LAUNCH_MASTER ( echo Gobal definition of "PROE_LAUNCH_MASTER" is used. >> ptcapps.log goto :proe_launch_master_defined ) set PROE_LAUNCH_MASTER=%PRO_STDS%\proe_launch_commands :proe_launch_master_defined echo Runtime Variables Set:>> ptcapps.log echo User Home Directory = %HOMEDRIVE%%HOMEPATH% >> ptcapps.log echo ILINK_CLIENT_LOADPOINT = %ILINK_CLIENT_LOADPOINT% >> ptcapps.log echo PDM_LDB_PATH = %PDM_LDB_PATH% >> ptcapps.log echo PROE_LOADPOINT = %PROE_LOADPOINT% >> ptcapps.log echo PRO_START_DIR = %PRO_START_DIR% >> ptcapps.log echo PROI_LOG_DIR = %PROI_LOG% >> ptcapps.log echo PRO_STDS = %PRO_STDS% >> ptcapps.log echo PRO_MASTER_LOADPOINT = %PRO_MASTER_LOADPOINT% >> ptcapps.log echo PROE_LAUNCH_MASTER = %PROE_LAUNCH_MASTER% >> ptcapps.log echo IEXPLORER_BROWSER = %IEXPLORER_BROWSER% >> ptcapps.log echo CM_LOCATION_LOCAL = %CM_LOCATION_LOCAL% >> ptcapps.log echo CM_LOCATION_MASTER = %CM_LOCATION_MASTER% >> ptcapps.log echo. >> ptcapps.log rem proe_linked_but_not_logged_into_proi.bat %* popd goto :eof :DOSEXIT set>lj_set_tst01.txt exit