I found some stuff I wrote up a while back. You have to create three files named:
StartPDM.cmd StopPDM.cmd QueryPDM.cmd
After creating the files insert the following text. Change the reference to the server from \\PC3 to whatever is appropriate for your system. It is a good idea to test this stuff before using in production.
In StartPDM.cmd:
@ECHO OFF REM REM SET THE NAME OF THE SYSTEM REM SET PDMSERVER=\\PC3 REM REM DON'T MESS WITH ANYTHING BELOW THIS LINE REM echo %PDMSERVER% PDMWorks Start echo ******************* sc %PDMSERVER% start "PDMWorks Server" pause sc %PDMSERVER% query "PDMWorks Server"
In StopPDM.cmd put:
@ECHO OFF REM SET PDMSERVER=\\PC3 REM REM DON'T MESS WITH ANYTHING BELOW THIS LINE REM echo %PDMSERVER% PDMWorks Stop echo ******************* sc %PDMSERVER% stop "PDMWorks Server" pause sc %PDMSERVER% query "PDMWorks Server"
In QueryPDM.cmd
@ECHO OFF REM REM SET THE NAME OF THE SYSTEM REM SET PDMSERVER=\\PC3 REM REM DON'T MESS WITH ANYTHING BELOW THIS LINE REM echo %PDMSERVER% PDMWorks Status echo ******************* sc %PDMSERVER% query "PDMWorks Server" pause
Then if you want to change vaults you can create a .reg file and just change one line to point to wherever your vault is. You only have to change rootPath.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\DesignSource\PDM/Works\Server] "rootPath"="G:\\pdmworks\\" "Skip Structure Validation"="FALSE" "Skip Tree Info Build"="FALSE" "Skip Tree Build"="FALSE"