Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Russ Braithwaite, on Friday, March 11, 2005 5:02 PM

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.
 21-Jul-2004 15:04
User is offline View Users Profile Print this message


David Lynam

Posts: 25
Joined: 22-Jun-2004

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?
Report this to a Moderator Report this to a Moderator
 21-Jul-2004 15:08
User is offline View Users Profile Print this message


Russ Braithwaite

Posts: 41
Joined: 13-Jun-2003

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
Report this to a Moderator Report this to a Moderator
 22-Jul-2004 15:49
User is offline View Users Profile Print this message


David Lynam

Posts: 25
Joined: 22-Jun-2004

Ahhhh........ it all becomes clear now

Cheers!
Report this to a Moderator Report this to a Moderator
 11-Aug-2004 11:17
User is offline View Users Profile Print this message


David Lynam

Posts: 25
Joined: 22-Jun-2004

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!
Report this to a Moderator Report this to a Moderator
 11-Aug-2004 11:22
User is offline View Users Profile Print this message


Russ Braithwaite

Posts: 41
Joined: 13-Jun-2003

Answer 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.

-------------------------
Russ Braithwaite
Software Configuration Management
Friends Provident
Report this to a Moderator Report this to a Moderator
 12-Aug-2004 10:02
User is offline View Users Profile Print this message


David Lynam

Posts: 25
Joined: 22-Jun-2004

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.