엑셀추출
define function !!StartTTY(!PW IS STRING, !MAC IS string)
!InstalledDir = |%pdms_installed_dir%|
!Version = !!MODULE().PRODUCT
!MODULE = |TTY |
VAR !ID USER
VAR !PJTCODE PROJECT CODE
VAR !MDB MDB
if (MATCHWILD(!Version, '*E3D*') ) then
!RUN = |CALL | + !InstalledDir + |\mon.exe PROD E3D init | + !InstalledDir + |\launch.init | + !MODULE + !PJTCODE + | | + !ID + |/| + !PW + | | + !MDB + | | + !MAC
elseif (MATCHWILD(!Version, '*PDMS*') ) then
!RUN = !InstalledDir + |\pdms.bat | + !PJTCODE + | | + !ID + |/| + !PW + | | + !MDB + | | + !MODULE + !MAC
ENDIF
SYSCOM 'START /MIN cmd.exe /C $!RUN'
endfunction