Page 1 of 1

TC 8.50 cm command mydocuments

Posted: 2013-11-28, 08:55 UTC
by silencer
In TC8.5 the dropdown list contains the My Documents entry.
I guess the value from the registry is used ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" possibly)

Can this path also be a CM command like the "My Computer" (cm_OpenDrives) so it could be used in a button/shortcut also?

(I would also like "Downloads" to be included, but maybe this is to obscure, since this isn't in the dropdown box either..)

Posted: 2013-11-28, 09:21 UTC
by MVV
Try this:

Code: Select all

cd %$PERSONAL%
Other TC-defined variables I know are %$APPDATA% and %$LOCAL_APPDATA%/$LOCALAPPDATA%.

BTW just tried to find something about these pseudo-variables in HISTORY or help - no luck. So, I think they should be documented.

Posted: 2013-11-28, 12:04 UTC
by silencer
Thanks! this helps a lot. :D

I used %USERPROFILE%, which is working fine on my personal installation, but is not pointing to the correct directory on the company installations because this directory was shifted to another drive.

I also see that the download parameter was allready requested in another thread (when searching for this pseudo-variables)

Posted: 2013-11-29, 00:00 UTC
by HolgerK
http://www.ghisler.ch/wiki/index.php/Navigation -> Pseudo environment variables

Regards
Holger