Page 1 of 2 12>
Topic Options
#64856 - 2002-04-25 02:37 PM Network Application shortcuts
w4tkn Offline
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
#64857 - 2002-04-25 02:40 PM Re: Network Application shortcuts
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Hmmm... 3.93... don't think so...

There is a MakeSCut util over at ScriptLogic

http://www.scriptlogic.com/downloads/utils/makescut.zip
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#64858 - 2002-04-25 02:47 PM Re: Network Application shortcuts
w4tkn Offline
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 Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Les ? A wiseguy ? Never [Wink]

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 Offline
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 [Big Grin]

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
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#64861 - 2002-04-25 03:15 PM Re: Network Application shortcuts
w4tkn Offline
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
#64862 - 2002-04-25 03:39 PM Re: Network Application shortcuts
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You need to create the shortcut file (ends with .LNK) and then you copy it to the @USERID\Desktop folder under the profiles folder (location depends on whether Windows NT or Windows 2000), e.g. C:\WINNT\PROFILES\USER\Desktop
_________________________
There are two types of vessels, submarines and targets.

Top
#64863 - 2002-04-25 03:43 PM Re: Network Application shortcuts
w4tkn Offline
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 Offline
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 ]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#64865 - 2002-04-25 03:49 PM Re: Network Application shortcuts
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Yeah... an ascerbic tongue... [Big Grin]

Since you need to customize the shortcut for each user, Shawn's shortie copy won't do. You can do the Radimus way if you want (argh). Figuring out where the desktop is could be a pain depending on OS, roamies, etc.

I haven't tried MakeSCut myself but it looks easy. I'm always for easy.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#64866 - 2002-04-25 03:53 PM Re: Network Application shortcuts
Shawn Administrator Offline
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 Offline
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 Offline
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 Offline
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
#64870 - 2002-04-25 05:15 PM Re: Network Application shortcuts
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Brian,
There's already more MakeShortcut UDFs than you can shake a stick at... Why would you want to create yet another?

This solution was proposed for a 3.63 install.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#64871 - 2002-04-25 05:18 PM Re: Network Application shortcuts
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
So, umm. which UDF is the best?

Brian

Top
#64872 - 2002-04-25 05:22 PM Re: Network Application shortcuts
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
To be honest... I use Shawn's low-tech copy seed approach...
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#64873 - 2002-04-25 06:47 PM Re: Network Application shortcuts
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I use WshShortCut UDF... but it requires kix 4.0 or better.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#64874 - 2002-04-25 08:27 PM Re: Network Application shortcuts
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: CA
w4tkn,

Time for me to be a wisecrack... [Big Grin]

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??? [Confused]

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. [Wink]

Top
#64875 - 2002-04-26 11:49 AM Re: Network Application shortcuts
w4tkn Offline
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
Page 1 of 2 12>


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 661 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.073 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org