hello, can anyone assist me with Registry it's Urgent

  • Thread starter Thread starter faran
  • Start date Start date
F

faran

hello,

can anyone tell me where are the shortcuts info. stored
in the registry, i've to create a sort of registry tool.

thanks in advance


faran
 
In said:
hello,

can anyone tell me where are the shortcuts info. stored
in the registry, i've to create a sort of registry tool.

Explain more. (and OS)
Shortcuts are files. There are some registry entries regarding how
shortcuts are handled....
 
In said:
hello,

can anyone tell me where are the shortcuts info. stored
in the registry, i've to create a sort of registry tool.

Explain more. (and OS)
Shortcuts are files. There are some registry entries regarding how
shortcuts are handled....
 
In said:
hello,

can anyone tell me where are the shortcuts info. stored
in the registry, i've to create a sort of registry tool.

Okay I just found TWO other threads. Can you stay in one thread?
(please)

What is the exact problem as best you can describe it. Then the task
as best you can describe it. And what type of shorcuts? IOW
traditional .LNK files or something else (eg .URL) or MSI Shortcuts?
What OS? Is it specific shorcuts that fail? What error message? Is
it all shortcuts at a given location (eg Desktop)? Only shorcuts to
remote resources? Shortcut files of Type (eg .LNK). When did it start
and what was done just prior to the problem. One specific account or
all accounts. One machine or many? ... ???
 
In said:
hello,

can anyone tell me where are the shortcuts info. stored
in the registry, i've to create a sort of registry tool.

Okay I just found TWO other threads. Can you stay in one thread?
(please)

What is the exact problem as best you can describe it. Then the task
as best you can describe it. And what type of shorcuts? IOW
traditional .LNK files or something else (eg .URL) or MSI Shortcuts?
What OS? Is it specific shorcuts that fail? What error message? Is
it all shortcuts at a given location (eg Desktop)? Only shorcuts to
remote resources? Shortcut files of Type (eg .LNK). When did it start
and what was done just prior to the problem. One specific account or
all accounts. One machine or many? ... ???
 
hello

thanks for replying, iam using Win2k, my task is to
detect all those shortcuts which aren't working, just need
to know from where i can get all the info of the desktop
shortcuts in the Registry, and also i might be asked to
develop a registry tool, so how can i traverse it

i did used some API's like "RegCreateKeyEx" and others,
but still i need some more eg.

thanks

email : (e-mail address removed)
 
hello

thanks for replying, iam using Win2k, my task is to
detect all those shortcuts which aren't working, just need
to know from where i can get all the info of the desktop
shortcuts in the Registry, and also i might be asked to
develop a registry tool, so how can i traverse it

i did used some API's like "RegCreateKeyEx" and others,
but still i need some more eg.

thanks

email : (e-mail address removed)
 
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
know is, where in the registry can i found the info. abt
the desktop shortcuts. i will be using vb as the front end.

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.

Thanks Indeed


Faran
 
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
know is, where in the registry can i found the info. abt
the desktop shortcuts. i will be using vb as the front end.

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.

Thanks Indeed


Faran
 
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.
 
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.
 
faran 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
know is, where in the registry can i found the info. abt
the desktop shortcuts. i will be using vb as the front end.

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.
Hi

You can use a VBScript for this (or use the VBScript COM interface
from your VB app), using the Scripting.FileSystemObject to enumerate
all the .lnk files on the desktop folder, and then use the
CreateShortcut method to get to the TargetPath property of the
shortcut.


From the Windows Script Host docs:
CreateShortcut Method: Creates a new shortcut, or opens an existing shortcut.

You can point to the existing shortcut with the CreateShortcut method,
and then you can read and/or modify it's properties.

Some code example:

Subject: Reading the Target of a Shortcut
http://groups.google.com/groups?th=42390a09fb7ff557

Subject: Re: Script to replace destination on shortcut icon
http://groups.google.com/[email protected]

Subject: Re: Copying files behind links
http://groups.google.com/[email protected]


WSH 5.6 documentation (local help file) can be downloaded from here
if you haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp
 
faran 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
know is, where in the registry can i found the info. abt
the desktop shortcuts. i will be using vb as the front end.

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.
Hi

You can use a VBScript for this (or use the VBScript COM interface
from your VB app), using the Scripting.FileSystemObject to enumerate
all the .lnk files on the desktop folder, and then use the
CreateShortcut method to get to the TargetPath property of the
shortcut.


From the Windows Script Host docs:
CreateShortcut Method: Creates a new shortcut, or opens an existing shortcut.

You can point to the existing shortcut with the CreateShortcut method,
and then you can read and/or modify it's properties.

Some code example:

Subject: Reading the Target of a Shortcut
http://groups.google.com/groups?th=42390a09fb7ff557

Subject: Re: Script to replace destination on shortcut icon
http://groups.google.com/[email protected]

Subject: Re: Copying files behind links
http://groups.google.com/[email protected]


WSH 5.6 documentation (local help file) can be downloaded from here
if you haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp
 
Hello,

but the task that's been assigned to me is to purely use
the REGISTRY, the shortcuts are placed
in "HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOW\CURRENTVERS
ION\EXPLORER\STREAMS" and in the DESKTOP section, but when
i use the REGOPENEX() function this hive isn't opened, iam
using VB to build this. It's real urgent

Thanks In Advance
 
Hello,

but the task that's been assigned to me is to purely use
the REGISTRY, the shortcuts are placed
in "HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOW\CURRENTVERS
ION\EXPLORER\STREAMS" and in the DESKTOP section, but when
i use the REGOPENEX() function this hive isn't opened, iam
using VB to build this. It's real urgent

Thanks In Advance
 
faran said:
Hello,

but the task that's been assigned to me is to purely use
the REGISTRY, the shortcuts are placed
in "HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOW\CURRENTVERS
ION\EXPLORER\STREAMS" and in the DESKTOP section, but when
i use the REGOPENEX() function this hive isn't opened, iam
using VB to build this. It's real urgent
Hi

No, the shortcuts are not placed in this registry branch or any other
place in registry.

If you export the registry branch you mention above to a file before
you create a desktop shortcut, and then export it again to another
file after the creation of the shortcut, and then compare the files,
they are identical (I just tested it).

I'm afraid the only way to solve your task is to enumerate and
inspect the .lnk files that are placed in the desktop folder...
 
faran said:
Hello,

but the task that's been assigned to me is to purely use
the REGISTRY, the shortcuts are placed
in "HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOW\CURRENTVERS
ION\EXPLORER\STREAMS" and in the DESKTOP section, but when
i use the REGOPENEX() function this hive isn't opened, iam
using VB to build this. It's real urgent
Hi

No, the shortcuts are not placed in this registry branch or any other
place in registry.

If you export the registry branch you mention above to a file before
you create a desktop shortcut, and then export it again to another
file after the creation of the shortcut, and then compare the files,
they are identical (I just tested it).

I'm afraid the only way to solve your task is to enumerate and
inspect the .lnk files that are placed in the desktop folder...
 
Back
Top