This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCSv12 Workspace Wildcard/My Documents folder for multiple users

Other Parts Discussed in Thread: CCSTUDIO

Hi Team,

Our customer has a query concerning workspaces within Code Composer and the ability to use wildcards/environment values for a workspace. For instance they have lab computers that multiple users use, but would like to direct the workspace for each user into their My Documents folder instead of a local drive location (they redirect user folders in this case). Would this be possible?

Thanks in advance!


Kind Regards,

Jejomar

 

  • Hello,

    I am still a little unclear on exactly where the customer wishes to use wildcards/environment values. Can they explain? Note that the default location of a CCS worksapce is inside the user's home folder.

    Thanks

    ki

  • Hello Ki,

    Here's the response from our customer:

    I need each user’s workspace to direct to their My Documents folder. We redirect this folder elsewhere as multiple users log onto our lab computers and as an educational institution we’d ideally prefer users not to be able to interact with other users’ workspaces.

     In the C:\ti\ccs12\ccs\eclipse\configuration\.settings\org.eclipse.ui.ide.prefs file, there is a variable “RECENT_WORKSPACES” which you can set to a location on the computer.

     This seems to be the file that controls what the user sees upon program startup, asking them to set their Workspace. We need this to be bound to each users’ Profile/My Documents folder.

    I have tried setting it to “C\:\\Users\%userprofile%\My Documents\” however it does not seem to recognize the Windows environment variable and creates a folder in C:\Users called %userprofile%.

     That is the reason I use “wildcard” or “env variables”.


    Kind Regards,

    Jejomar

  • Instead of using the prefs file, I have a different suggestion. The CCS executable (ccstudio.exe) supports a parameter where you can specify the workspace path:

    -data <WORKSPACE DIR>

    Example:

    > <CCS INSTALL DIR>\ccs\eclipse\ccstudio.exe -data <WORKSPACE DIR>

    This will launch CCS and automatically specify the workspace location to <WORKSPACE DIR>

    You can create a Windows *.bat file that calls this since a *.bat supports expansion of system environment variables.

    Thanks

    ki