![]() |
Telelogic SYNERGY (steve huntington) | ![]() |
Topic Title: How to use a batch file to start a session? Topic Summary: Created On: 21-Jul-2004 15:04 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Stick an @ECHO ON at the start of the script and PAUSE at the end - at least then the Window should stay open so you can see what is happening. | |
![]() |
|
Hi,
We use both CCM 6.2 and 6.3 on Windows (Unix backend), to access a number of seperate databases across the two versions. I'd like to be able to use a batch file bring up a CCM session for a database that is particular to the batch file run (i.e. one for each database/each version) - so that we don't have to re-type all the parameters into the dialog box each time... Currently I've got the following defined in the batch file; " ccm start /gui /h xxxxxx /d /users/ccm63_databases/xxx_xxx /r developer /n xxxxxx -m /u c:\cmm63 /home d:\ " The problem is that this always runs a ccm62 session - I couldn't figure out how to force it to run 6.3 - can someone please tell me? ![]() ![]() |
|
![]() |
|
![]() |
|
When using the ccm command in a batch file on a Windows PC with more than one Synergy installation it will use whichever ccm.exe it finds first via the PATH environment variable. In this case it is finding the 6.2 version first.
You either need to set the correct environment in each batch file before using ccm, or fully qualify the ccm command (e.g. %CCM_HOME_62%\ccm start ...; %CCM_HOME_63%\ccm start). ------------------------- Russ Braithwaite Software Configuration Management Friends Provident |
|
![]() |
|
![]() |
|
Ahhhh........ it all becomes clear now
![]() Cheers! |
|
![]() |
|
![]() |
|
I don't suppose someone knows why when I double-click the batch file it does nothing, other than momentarily open a DOS window?
When I manually type in the command found in the batch file, from a DOS prompt window, it works - it's only when trying to run the batch file that it gets nowhere! Any sugestions are appreciated! |
|
![]() |
|
![]() |
|
Stick an @ECHO ON at the start of the script and PAUSE at the end - at least then the Window should stay open so you can see what is happening.
------------------------- Russ Braithwaite Software Configuration Management Friends Provident |
|
![]() |
|
![]() |
|
Well it's sorted itself out now. I tweaked the env. path and the script itself and it works fine now for CCM 6.3.
Just need to tweak it for CCM 6.2 as I've explicitally defined the 6.3 location in the path in at the moment |
|
![]() |
Telelogic SYNERGY
» SYNERGY/CM
»
How to use a batch file to start a session?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.