Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Saving State

I am frequently getting TCMD into a certain state that I want preserved upon restart. For example - I might get 3 TCC prompts open with each one sitting at a certain path. Is there a way to save the current state of tabs, paths, etc., so they are restored upon startup? (I'm looking for a quick way to do this - whenever I want - not requiring me to go into the Options dialog and manually configure each tab.)

Thanks,
-Chris
 
I am frequently getting TCMD into a certain state that I want preserved upon restart. For example - I might get 3 TCC prompts open with each one sitting at a certain path. Is there a way to save the current state of tabs, paths, etc., so they are restored upon startup? (I'm looking for a quick way to do this - whenever I want - not requiring me to go into the Options dialog and manually configure each tab.)

No, there's no way to do this from TCMD. While it would be possible (with a *lot* of work) to add this feature for TCC tabs, it is impossible to do with any other apps (CMD, PowerShell, bash, etc.).

You could write aliases to save the state (to TCMD.INI) from your TCC prompts. (But they wouldn't be able to read or affect other TCC tab windows.)
 
I am trying out the software is this a thing now?
I don't think it is.

My advice is to write a BTM or batch file to save the state of the current TCC instance to a disk file: PATH, environment variables, aliases, current drive, and current working directory. You will have to do this for each of the TCC tabs you have open.

Then when you shut down and return to work the next day, you will run a second batch file called "load_init.btm" (or something similar) that takes a diskfile as a parameter. For the first tab you have open, run "load_init 1.dat", and for the next tab run "load_init 2.dat", etc.

Your load_init BTM script should include a function to check to see if the drive and directory exists before trying to load them, so that any errors can end gracefully.

Hope this helps.
 
Back
Top