#64856 - 2002-04-25 02:37 PM
Network Application shortcuts
|
w4tkn
Fresh Scripter
Registered: 2002-04-11
Posts: 23
Loc: Scotland
|
Using Kix 3.93. Does anyone know if its possible to create a shortcut on a users desktop to a application on a netowrk drive? There is installation needed to this application, just a shortcut.
And if that is possible, is it possible to create the shortcut but concatinate it with the users login?
e.g of shortcut path
n:\Tspirit\tt\TSPIRIT.exe matthew
|
|
Top
|
|
|
|
#64858 - 2002-04-25 02:47 PM
Re: Network Application shortcuts
|
w4tkn
Fresh Scripter
Registered: 2002-04-11
Posts: 23
Loc: Scotland
|
It was 3.63. Hope you were being a wise guy in your reply and it is possible.
|
|
Top
|
|
|
|
#64859 - 2002-04-25 02:52 PM
Re: Network Application shortcuts
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Les ? A wiseguy ? Never
Why don't you consider doing what a lot of folks do ... place your shortcuts in a netlogon folder and copy them across the network to your desktops. It make thinngs so much easier to manage. If you ever have to remove or change a shortcut path, just plop the new shorties out to the share and your done.
-Shawn
|
|
Top
|
|
|
|
#64860 - 2002-04-25 02:56 PM
Re: Network Application shortcuts
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
Yea... Les is a character, His head and heart is in the right place, even if the rest of him is in Canada
There are a number of script routines that use 3.63 to create shortcuts... But the basic concept is: addprogramgroup in program menu addprogramitem to that folder move the shortcut to the desktop delete the folder
|
|
Top
|
|
|
|
#64861 - 2002-04-25 03:15 PM
Re: Network Application shortcuts
|
w4tkn
Fresh Scripter
Registered: 2002-04-11
Posts: 23
Loc: Scotland
|
Can you explain how I would move the item to the desktop folder please?
|
|
Top
|
|
|
|
#64863 - 2002-04-25 03:43 PM
Re: Network Application shortcuts
|
w4tkn
Fresh Scripter
Registered: 2002-04-11
Posts: 23
Loc: Scotland
|
Is there any way that Kix can do the move for me?
|
|
Top
|
|
|
|
#64864 - 2002-04-25 03:47 PM
Re: Network Application shortcuts
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
read the MOVE command for cmd, or do a copy and delete [ 25 April 2002, 15:48: Message edited by: Radimus ]
|
|
Top
|
|
|
|
#64866 - 2002-04-25 03:53 PM
Re: Network Application shortcuts
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
yap - sorry - missed that requirement. we use shortcut.exe from the ntreskit to dynamically modify wkstn shortcuts, here's a snippet from our login script:
code:
SHELL '%COMSPEC% /C ATTRIB -R "C:\LINKS\TRAINING\NCAMS.LNK" >NUL 2>NUL' SHELL '%COMSPEC% /C C:\NTRESKIT\SHORTCUT -F -N "C:\LINKS\TRAINING\NCAMS" -T W:\IPSS\NCAMSGUI\IS.EXE -D W:\IPSS\NCAMSGUI >NUL 2>NUL' SHELL '%COMSPEC% /C C:\NTRESKIT\SHORTCUT -F -N "C:\LINKS\TRAINING\IPSS" -T W:\IPSS\IPSSGUI\PCR__CVR.EXE -D W:\IPSS\IPSSGUI >NUL 2>NUL' SHELL '%COMSPEC% /C C:\NTRESKIT\SHORTCUT -F -N "C:\LINKS\TRAINING\IPSS ADMIN" -T W:\IPSS\IPSSGUI\PCR_ADMN.EXE -D W:\IPSS\IPSSGUI >NUL 2>NUL'
-Shawn [ 25 April 2002, 15:54: Message edited by: Shawn ]
|
|
Top
|
|
|
|
#64867 - 2002-04-25 04:16 PM
Re: Network Application shortcuts
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
I just created an INF file that does it for me. Can this be converted to kix code?
TSPIRIT.INF
code:
[Version] Signature=$Chicago$
[AddShortcut] setup.ini, progman.groups,, "group1=""%10%\Desktop" setup.ini, group1,, ""%10%\Desktop\TSPIRIT","N:\Tspirit\tt\TSPIRIT.exe",,,,"N:\Tspirit\tt\" setup.ini, group1,, ""%10%\Desktop\TSPIRIT",""N:\Tspirit\tt\TSPIRIT.exe matthew"",,,,""N:\Tspirit\tt"",""TSPIRIT.exe matthew"""
[DefaultInstall] UpdateInis=AddShortcut
If you just wanted to use the .inf file, you could always call it in a .kix logon script with:
code:
SHELL "RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 128 " + @LSERVER + "\netlogon\tspirit.inf"
Again, can KIXtart do this?
Brian
|
|
Top
|
|
|
|
#64868 - 2002-04-25 04:52 PM
Re: Network Application shortcuts
|
Les
KiX Master
   
Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
|
You mean something like this (untested)?
code:
break on
$SCutINI="%temp%\tspirit.inf" $ShellCMD ="RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 128 " + $SCutINI If Exist($SCutINI) Del '$SCutINI' Endif If RedirectOutput($SCutINI) = 0 '[Version]' ? 'Signature=$Chicago$' ? '[AddShortcut]' ? 'setup.ini, progman.groups,, "group1=""%10%\Desktop"' ? 'setup.ini, group1,, ""%10%\Desktop\TSPIRIT","N:\Tspirit\tt\TSPIRIT.exe",,,,"N:\Tspirit\tt\"' ? 'setup.ini, group1,, ""%10%\Desktop\TSPIRIT",""N:\Tspirit\tt\TSPIRIT.exe matthew"",,,,""N:\Tspirit\tt"",""TSPIRIT.exe matthew"""' ? '[DefaultInstall]' ? 'UpdateInis=AddShortcut' ? $rc = RedirectOutput("") Else $Error ="Failed to create " + $FTPScript GoTo ExitError Endif Shell '$ShellCMD' Exit 0 :ExitError "DOH!" ? get $_ Exit 1
{edit} Well... the "Matthew" needs to be replaced with a variable... but you get the picture. What is "Matthew", the UserID? And yeah yeah, I know delete $SCutINI fiel afterwards... [ 25 April 2002, 16:56: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.
|
|
Top
|
|
|
|
#64869 - 2002-04-25 05:06 PM
Re: Network Application shortcuts
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
That looks really cool, Les, but I was thinking more along the lines of manipulation the ADDPROGRAMGROUP/ADDPROGRAMITEM/DELPROGRAMITEM/SHOWPROGRAMGROUP functions. Perhaps it just can't be done through that.. would be a nice function to add to kixtart:
CreateShortcut(shortcutname,destination,target,startin,options)
Options would be Attributes + Normal/minimized/maximized.
Destination could be allowed to use the standard Windows folder macros -- %10, %20, %30, etc. Just a thought.
Brian
|
|
Top
|
|
|
|
#64871 - 2002-04-25 05:18 PM
Re: Network Application shortcuts
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
So, umm. which UDF is the best?
Brian
|
|
Top
|
|
|
|
#64873 - 2002-04-25 06:47 PM
Re: Network Application shortcuts
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
I use WshShortCut UDF... but it requires kix 4.0 or better.
|
|
Top
|
|
|
|
#64874 - 2002-04-25 08:27 PM
Re: Network Application shortcuts
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: CA
|
w4tkn,
Time for me to be a wisecrack...
I already answered this question for you on your original post here... Adding items to desktop
I also asked you for an update... I guess this post here is your update to the other post???
Icon Creation
ADDPROGRAMITEM
These solutions work very well with KiXtart v3.63 and it uses the MakeScut program is from ScriptLogic
MakeScut is a command line utility that will dynamically create shortcut (.lnk/.pif/.url) files from within your logon script or from the command line. (updated 22-Feb-2002 - v1.13)
Script Logic Home Page
Freeware (32-bit) Utilities from Script Logic website - including MakeScut
Okay... I'm done joking with ya w4tkn, but please try to follow your own posts. It makes it easier for everyone involved to help you better and prevent someone from flaming you about it.
Best wishes and this time please let us know in this post if these solutions work for you or not.
|
|
Top
|
|
|
|
#64875 - 2002-04-26 11:49 AM
Re: Network Application shortcuts
|
w4tkn
Fresh Scripter
Registered: 2002-04-11
Posts: 23
Loc: Scotland
|
I used the Makescut method and then used run"filename" in my kix log on script. Thanks for your help guys.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 685 anonymous users online.
|
|
|