#64877 - 2002-05-22 08:37 AM
Re: Network Application shortcuts
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
It is possible to catch the actual location by registry keys. An extraction from one our windows environments:
code:
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders] "Desktop"="C:\\WINDOWS\\Desktop" "Personal"="C:\\My Documents" "Programs"="C:\\WINDOWS\\Start Menu\\Programs" "Start Menu"="C:\\WINDOWS\\Start Menu" "Startup"="C:\\WINDOWS\\Start Menu\\Programs\\StartUp"
With following code you can copy f.e. shortcuts to your desktop:
code:
$desktop=ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop") COPY "\\server\netlogon\program.lnk" "$desktop" /H
greetings.
|
|
Top
|
|
|
|
#64879 - 2002-05-23 08:00 PM
Re: Network Application shortcuts
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
I'm trying to use addprogramitem, but it isn't configuring the startdir or icon...
any ideas?
$=addprogramgroup("Informix16",0) $=addprogramitem("$infdir\BIN\SETNET.EXE","Setnet","",0,"$infdir\BIN",0,0,0) $=addprogramitem("$infdir\BIN\ILogin.EXE","ILogin","",0,"$infdir\BIN",0,0,0) $=addprogramitem("$infdir\BIN\Finderr.EXE","Finderr","",0,"$infdir\BIN",0,0,0) $=addprogramitem("\\mad\misapps\MEDIPASS\medipass.exe","Medipass","%SystemRoot%\system32\SHELL32.dll",116,"\\mad\misapps\MediPass",0,0,0)
|
|
Top
|
|
|
|
#64880 - 2002-05-25 04:38 AM
Re: Network Application shortcuts
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
I found out that the problem is that addprogramitem douesn't like using unc for the start dir... I change one of the statement to specify c:\ and it worked and the others didn't..
Oh well, back to WSHShortcut() (hail Shawn)
|
|
Top
|
|
|
|
#64882 - 2002-05-25 11:34 AM
Re: Network Application shortcuts
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
yep... but the problem turn out to be with addprogramitem itself (I guess)
It will not configure the start in directory if it is a UNC. WSHShortcut() would
I actually wanted to make the shortcut in the users startmenu (x5). Which it did, but wouldn't put in the unc start in dir.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 661 anonymous users online.
|
|
|