Page 1 of 1 1
Topic Options
#50730 - 2000-07-25 02:49 PM Desktop Shortcuts
Anonymous
Unregistered


How do you get Kixtart to read the 'Target:' information of a shortcut without useing SENDKEYS?
Top
#50731 - 2000-07-26 02:35 PM Re: Desktop Shortcuts
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
3MGrant5 (?)

This is dumb, but if you've got the NT ResKit, you can use shortcut.exe like this:

code:

break on


$linkDir = "c:\shortcuts" ; Directory where your shortcut lives
$linkFile = "notepad.lnk" ; Shortcut name
$tempFile = "%temp%\shortcut.tmp" ; Temporary work file


if exist ( "$linkDir\$linkFile" )


cd "$linkDir"


del "$tempFile"


shell '%comspec% /c c:\ntreskit\shortcut.exe -u t "$linkFile" > "$tempFile"'


if exist ( "$tempFile" ) and open ( 1, "$tempFile", 2 ) = 0


$target = readline (1)


?"target = $target"


$= close (1)


endif


endif


exit


Shawn.


Top
#50732 - 2000-07-26 09:18 PM Re: Desktop Shortcuts
Anonymous
Unregistered


Where can I get shortcut.exe if I don't have the resource kit?
Top
#50733 - 2000-07-26 10:47 PM Re: Desktop Shortcuts
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
win95 cd
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#50734 - 2000-07-26 11:12 PM Re: Desktop Shortcuts
Anonymous
Unregistered



what you want to do is very easy with a simple do loop. Think of the shortcut as one line file !

Top
#50735 - 2000-07-27 07:19 PM Re: Desktop Shortcuts
Anonymous
Unregistered


Could you provide an example of the simple do loop? Thanks.
Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 271 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.46 seconds in which 0.254 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