Re: COM WSH - About the IWshShortcut method (SOS!)



SuperDrone wrote:
> Are the shortcuts actually registry entries?

I'm no expert on shortcuts but I know a little about them.

Shortcuts are just files. If you create a shortcut (called "Test") on your
root C: drive and then open a CMD window and run a DIR command, you'll see
that the shortcut is just a file with a ".lnk" (link) extension. You can
rename the file Test.lnk as Test.txt (from the CMD prompt -- not in Windows)
and then you'll see the file properly from within Windows.

If you open the file in a binary editor you'll see that it's just a binary
file with the target file location stored within it.

> What is the best way to go about making stand alone .lnk files if
> possible?

If you're failing to find an API that'll let you create a link to a
non-existent file, the .lnk file format itself is documented so you could
consider manufacturing one by hand. It may be more work but you've got
complete control over what goes in it that way.

Search for lnk files on the Wotsit's Format site (http://www.wotsit.org) and
you'll find several documents explaining the format of the file.

Hope that helps,

--

(O)enone


.



Relevant Pages

  • Re: PROBE-FILE and Windows shortcuts
    ... That would make it possible to use ASDF on Windows as it was ... by creating shortcuts to .asd files in ... Windows shortcut .lnk files are more closely analogous to ... clisp is likely just using that support, ...
    (comp.lang.lisp)
  • Re: all exe files switched to .lnk file type??
    ... to start Windows at all. ... Shortcuts actually have the extension .lnk - but this is usually hidden by ... It could be that the associations for .lnk files have been messed up. ... Search on Google for "lnk association". ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Createing shortcuts using VB6
    ... I cannot find any info on what versions of Windows this ... use it in VBA as well as VB. ... the function it exports for creating lnk files ... It is designed to create shortcuts in either "\Start ...
    (microsoft.public.vb.general.discussion)
  • Re: PROBE-FILE and Windows shortcuts
    ... That would make it possible to use ASDF on Windows as it was ... by creating shortcuts to .asd files in ... Cygiwn, however, uses special augmented shortcut .lnk files to represent ... clisp is likely just using that support, and "alien to cygwin" (i.e. ...
    (comp.lang.lisp)
  • Lost Shortcuts
    ... start menu shortcuts were replaced with .lnk files that ... Windows does not know how to use. ... prompts me to select an appropriate program. ... get my shortcuts back? ...
    (microsoft.public.windowsxp.general)