PDMS12.0.SP6启动不了,麻烦大马们看看我这个pdms.bat? 还得马蹄金,所以就不想看了,估计看得人懒得下载再看了。 粘贴已下我的,你自己对照一下了。 @echo off rem ---------------------------------------------------------------- rem start up pdms, allowing for pdmsexe being a search path, and rem some arguments to pass into monitor rem ---------------------------------------------------------------- setlocal set savepath=%path% rem ---------------------------------------------------------------- rem set pdms_installed_dir to the folder this .bat is running in rem this line is edited by the installer to point to your chosen folder rem ---------------------------------------------------------------- set pdms_installed_dir=d:\aveva\plant\pdms12.0.sp6\. rem --------------------------------------------- rem set evars for pdms rem this sets all the project variables rem --------------------------------------------- call "%pdms_installed_dir%\evars" "%pdms_installed_dir%" if not "%pdms_acad%"=="" goto acaddone set acad_version=%pdms_acad% rem echo %path% :acaddone rem ---------------------------------------------------------------- rem the rest of this is about finding a path to rem mon.exe within main executables directory rem and then running it rem ---------------------------------------------------------------- set found= rem ---------------------------------------------------------------- rem next two for loops set %i to the 1st token and %j to the remaining tokens rem using space as a delimiter rem ---------------------------------------------------------------- set remains=%pdmsexe% :nextsp set nextpart= for /f "tokens=1,* delims= " %%i in ( "%remains%" ) do set nextpart=%%i for /f "tokens=1,* delims= " %%i in ( "%remains%" ) do set remains=%%j if "%nextpart%" equ "" goto spdone call pdms_findexe "%nextpart%" mon.exe if not "%found%"=="" goto gotmon goto nextsp :spdone rem ---------------------------------------------------------------- rem next two for loops set %i to the 1st token and %j to the remaining tokens rem using space as a delimiter (new at pdms 12) rem ---------------------------------------------------------------- set remains=%pdmsexe% :nextse set nextpart= for /f "tokens=1,* delims=;" %%i in ( "%remains%" ) do set nextpart=%%i for /f "tokens=1,* delims=;" %%i in ( "%remains%" ) do set remains=%%j if "%nextpart%" equ "" goto sedone call pdms_findexe "%nextpart%" mon.exe if not "%found%"=="" goto gotmon goto nextse :sedone goto nomon :gotmon set monexe=%found% rem ---------------------------------------------------------------- rem if we have no arguments, add 'graphics' so that monitor doesn't rem think we are coming from a module-switch rem ---------------------------------------------------------------- set args=%1 %2 %3 %4 %5 %6 if "%1"=="" set args=graphics rem for autocad set pdms_acad=2006 set acad_version=%pdms_acad% set pdms_acad_path=c:\program files\autocad 2006;c:\program files\common files\autodesk shared rem ---------------------------------------------------------------- rem the following directories should contain the executables - %pdms_acad_path% rem alternatively, edit this macro for your own setup. rem ---------------------------------------------------------------- set path=%pdmsexe%\autodraftacad;%pdms_acad_path%;%path% rem ---------------------------------------------------------------- rem the following directory should contain autocad-style fonts used rem by open design alliance libraries on machines not equipped with rem autocad. rem ---------------------------------------------------------------- set acad=%pdmsexe%\autodraftfonts rem evar to workaround unwanted interaction of pdms launcher and plot input; set pdms_console_window=active rem ----------------------------------------------- rem we have found mon.exe somewhere, so start it up rem with any arguments the user passed us rem ----------------------------------------------- echo running: %monexe%\mon %args% cmd/c "%monexe%\mon" %args% goto end :nomon @echo sorry, cannot find mon.exe within your pdmsexe - %pdmsexe% pause goto end :end set path=%savepath% endlocal 查看更多