Page 1 of 1 1
Topic Options
#31131 - 2002-10-21 04:03 PM Shortcut target change
sgtdrpepper Offline
Fresh Scripter

Registered: 2002-10-21
Posts: 9
Hello
I have an app that is pointing to a server that is moving. Is there a way I can check to see if the shortcut is on a users desktop and if so chanck the target to the new server? I am very new to scripting so try to keep simple if at all possible.

Thanks

Top
#31132 - 2002-10-21 04:05 PM Re: Shortcut target change
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
there is a EditShortcut() UDF in the UDF forum to read/change the properties of a shortcut
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#31133 - 2002-10-21 04:14 PM Re: Shortcut target change
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You will most likely need to know the name of the shortcut. Otherwise you will have to enumerate all .LNK files in the Start menu and on the desktop and check each one whether it contains the link to the application.

You cna use the DirPlus() UDF in the UDF Froum to search for a file in directories.
_________________________
There are two types of vessels, submarines and targets.

Top
#31134 - 2002-10-21 04:24 PM Re: Shortcut target change
sgtdrpepper Offline
Fresh Scripter

Registered: 2002-10-21
Posts: 9
Luckly I do know the name. THanks
Top
#31135 - 2002-12-07 03:28 PM Re: Shortcut target change
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

An alternative can be the creation of new shortcut with the right settings.
It prevents possible problems with guys who has create their own version.
Internal communication in helpdesk about changes can solve user ques-
tions about "mine application doesn't start anymore".
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


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

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

Generated in 0.065 seconds in which 0.037 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