In said:
hello,
Nothing's done prior, i've been given a task to first to
work on registry with the aim how to locate desktop (local
machine) shortcuts which aren't working, all i need to
Okay. Unless all shortcuts of a given type (like .URL or .LNK) are
non-functional, then this is _not_ a registry issue.
Shortcuts (in NTx) are files. Any "bad path" for example will be
found in the file (the shortcut file) and not within the registry.
know is, where in the registry can i found the info. abt
the desktop shortcuts. i will be using vb as the front end.
I doubt that any registry settings are involved at all. Without
additional information I cannot be certain of that of course. And
some (like MSI shortcuts) _are_ dependent on registry class
information.
Iam new to this sort of task, iam also looking at some
api's and need to know them too. and if the shortcut suff
is done, then i might be asked for some more.
So, without having the answers to the previous questions, I just
cannot give you any more of an answer. If MSI shortcuts are broken
I'd suggest doing a Repair from the application to fix them perhaps.
For traditional shortcuts the current content can be retrieved with a
CLI tool such as shortcut.exe. Example:
C:\>shortcut /a:q /f:"%userprofile%\desktop\notepad_test.lnk"
[notepad_test.lnk]
TargetPath=C:\WINNT\NOTEPAD.EXE
TargetPathExpanded=C:\WINNT\NOTEPAD.EXE
Arguments=
ArgumentsExpanded=
WorkingDirectory=C:\winnt
WorkingDirectoryExpanded=C:\winnt
RunStyle=1
IconLocation=,0
IconLocationExpanded=,0
HotKey=0 (None)
Description=
And outside verification of the Path could be done from that
information. UNC paths or mapped remote resources in Paths may cause
problems when such resources are not available, are restricted access
or have been re-mapped.
shortcut.exe from Marty List,
http://www.optimumx.com/
In short, I don't think I can provide anything more than I have.