get streamname using scm.exe
Accepted answer
This functionality was updated in 4.0, to list all the streams by default. You can also now list streams owned by a project area and/or team area.
Comments
Thanks Shashikant. Let me say that I am new to RTC and perhaps I am going about this the wrong way. My problem is that the script that bootstraps our development environment doesn't know the streamname or workspace name. It only knows about the files and the directory of the sandbox from which it is loaded. The script must get the basic information like streamname/workspacename using the scm.exe command and/or the sandbox location/files.
You can run 'scm status -v -w' after stepping into the sandbox directory. This will list the status of the workspaces in the sandbox that has the workspace, target flow stream and loaded components information. It is similar to the pending changes view in the UI clients.
What is missing in 4.0 is the listing of attributes/properties of the workspace such as visibility, owner, flow targets etc.
1 vote
I thought about this but found that it only returns the info if the sandbox is not consistent. If there is no pending changes it returns "Local filesystem is consistent". A dirty hack would be to introduce a pseudo change but somehow it is not enough. Anyways .. thanks.
If there is no pending changes it will list the workspace name, flow target and loaded components. Only the incoming and outgoing changes will not be shown. Can you paste the output of your "status -v -w" subcommand?
My sandbox must have been corrupted somehow. When I created a new stream, workflow and sandbox and "scm status" gave me the correct output. Thanks a lot.