View Full Version : Quick launch built-in variable
Laslie Toth
02-06-2002, 04:31 AM
I suggest a new built-in variable:
%QuickLaunch%
I have use for put some icon to Quick Launch in my setup, but I can't do it.
Sincerely
Laslie
I'd also like this option... does anybody have a script that does this?... (as a temporal workaround)
Lorne
02-25-2002, 09:05 AM
Try this:
First, use a Read from Registry action to get the AppData path:
Read from Registry
Variable name: %AppData%
Main key: HKEY_CURRENT_USER
Sub Key: Software\Microsoft\Windows\CurrentVersion\Explorer \Shell Folders
Value name: AppData
Then, use an Assign Value action to guess the standard "Quick Launch" folder's path:
Assign Value
Variable name: %QuickLaunch%
Value: %AppData%\Microsoft\Internet Explorer\Quick Launch
Evaluate value as expression: unchecked
You'll probably want to test this out on several operating systems...I've only tested it on my work system, which is running Windows 2000 at the moment.
GeoTrail
11-26-2002, 10:03 AM
That worked great on my machine.
I'm running Windows XP Pro /ubbthreads/images/icons/smile.gif
Jason Pate
01-02-2003, 12:05 PM
What about the Rest of the Users on the system, and 9.x boxes? I want to make sure the short is avable for all users on the computer especially in Windows 2000 Terminal Server.
GeoTrail
01-02-2003, 07:33 PM
To make it work on all OS you have to use the OS detect feature and write a script for Win95, 98, ME and for NT, 2000 and XP.
Jason Pate
01-03-2003, 07:09 AM
I know I could use that to deside what OS I am installing on, But each OS uses a different location for storing the Quick Launch also its different for each user, I was hoping that someone knew a gloable location. Is there a way to find each users account on the system and add the to their Quick Launch tool bar?
GeoTrail
01-03-2003, 08:14 AM
This should be a global way to add a shortcut to Quick Launch.
It should work on all NT, 2000, XP and .Net platforms.
If someone finds it not to work please let me know at robert@geotrail.no
Read from Registry:
Variable name:
%QuickLaunch%
Default Value:
0
Main key:
HKEY_CURRENT_USER
Sub key:
Software\Microsoft\Windows\CurrentVersion\GrpConv\ MapGroups
Value name:
Quick Launch
The code could look like this:
Read from Registry (%QuickLaunch% = HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\GrpConv\MapGroups\\Quick Launch)
IF (%QuickLaunch% = 0)
Show Message Box (Could not find path to Quick Launch.)
GOTO LABEL (skip)
END IF
Create Shortcut (%QuickLaunch%\Notepad.exe -> Notepad.exe)
skip
GeoTrail
01-03-2003, 08:23 AM
Or to make sure the user is on NT, 2000, XP or .Net use this:
IF (%IsWin2000% OR %IsWinNT3% OR %IsWinNT4% OR %IsWinXP% = TRUE)
Read from Registry (%QuickLaunch% = HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\GrpConv\MapGroups\\Quick Launch)
IF (%QuickLaunch% = 0)
Show Message Box (Could not find path to Quick Launch.)
GOTO LABEL (skip)
END IF
END IF
Create Shortcut (%QuickLaunch%\Notepad.exe -> Notepad.exe)
skip
Darryl
01-24-2003, 01:53 PM
I've added this as a suggestion for consideration in the future. Thank you.
GeoTrail
01-24-2003, 01:58 PM
Sounds great.
Hope it gets added /ubbthreads/images/icons/wink.gif
Thanks!
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.