BCB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[BCB] Shortcut Files (*.lnk)
Hash: SHA1
> AnsiString LinkPath =
> "C:\\Windows\\Start Menu\\Programs\\My Company\\MyProgram.lnk";
That's a bit presumptive, that windows is installed to the default
directory. Better to ask the Registry where the current version of
Windows is installed to - it might even be able to tell you where the
Start Menu is.
Try:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Programs"
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Start Menu"
and
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Startup"
seem to be the most useful.
Philip Hibbs
Senior Analyst
PC Development
TNT UK Information Technology
Atherstone
pgp file://pc_hibbsp/pgp/PhilipHibbs.asc
W Komornicki's Home Page |
Main Index |
Thread Index