Page 1 of 1
%System Vars% for Hot Paths
Posted: 02 Apr 2006, 14:24
by Stefan
ALTAP Roadmap (updated 02/06/2006)
-- Structured and unlimited Hot Paths.
I hope we can use
system vars like %USERPROFILE%
e.g. to have the following Hot Paths
MyDesktop ---- %Userprofile%\Desktop
AppsProfile ---- %APPDATA%
Drivers --------- %WinDir%\System32\Drivers
so our Hot Paths works on all machines.
(I have tryed to use $[%UserProfile%] and $[USERPROFILE] but no luck)
find me:
%HomeDrive% %ProgramFiles% %Temp% sys system variable variables
Re: %System Vars% for Hot Paths
Posted: 03 Apr 2006, 11:19
by KNUT
Stefan wrote:I hope we can use system vars like %USERPROFILE% e.g. to have the following Hot Paths [...]
Yes, please! Great idea
(nearly obvious....)
Posted: 03 Apr 2006, 15:34
by SvA
Environment variables was great, but only half a solution. Many folders canot reliably be specified by using environment variables, thus we need CSIDL constants too. See
Disconnect network drive in the Problems and Troubleshooting forum for an example.
Posted: 03 Apr 2006, 17:41
by AbteriX
Yes, you mean like
Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}
or
Scanners and camera's.{E211B736-43FD-11D1-9EFB-0000F8757FCD}
A list of this special folder CLSIDs can be found
here
http://vlaurie.com/computers2/Articles/ ... lders2.htm
and here
http://www.virtualplastic.net/html/icn_reg.html
Or in SS menu "Commands | Open Folders >"
Posted: 04 Apr 2006, 10:55
by AbteriX
"Special Folders" can not be open in "Hot Paths" but in "User Menu":
1 - make a new sub folder, e.g. ...\Programs\Sala2.5b11\SpecFolders
2 - make there a new sub folder called 'Printers.{2227A280-3AEA-1069-A2DE-08002B30309D}'
(see last post for links to a list of special folders)
3 - config your user menu and point to this newest folder
'...\Programs\Sala2.5b11\SpecFolders\Printers.{2227A280-3AEA-1069-A2DE-08002B30309D}'
Be sure to see all files *.*
---
You can do the same in "Hot Paths".... but Salamander redirect NOT to the special folder
but opens only the folder you created with the "special folder name"
But You can still right click your "special folder named"-folders in Salamander and "Explorer" them to browse the special folders.
(so maybe Altap can improve this ?)
Posted: 05 Apr 2006, 16:08
by SvA
Thank you, AbteriX, for your suggestion.
I did not mean CLSIDs, but, as I wrote it, CSIDLs. These are used in Windows API to access special shell folders. See
http://msdn.microsoft.com/library/defau ... /csidl.asp
With these you can access the system's current notion of e.g. the My Documents folder, which refuses to do it's thing using the method AbteriX suggested.
Posted: 05 Apr 2006, 17:54
by AbteriX
Oh " CSIDLs", sorry never heard about
Thanks for clarifying SvA.
Re: %System Vars% for Hot Paths
Posted: 28 Aug 2009, 09:55
by Jan Rysavy
$(WinDir), $(SysDir), $(SalDir), $[EnvironmentVariable] variables will be supported in Hot Paths from AS 2.52.
Thank you for your ideas!