Announcement

Collapse
No announcement yet.

Adding folder shortcut to Start Menu?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding folder shortcut to Start Menu?

    How can I add sub-folder to the Start Menu / Programs / my program name / Logs?
    Thank you!

  • #2
    Probably with something like this or similar.
    Code:
    Shell.CreateShortcut(SessionVar.Expand("%StartFolder%\\%AppShortcutFolderName%"), "Log Folder", SessionVar.Expand("%AppFolder%\\Logs"));
    Ulrich

    Comment


    • #3
      Originally posted by Ulrich View Post
      Probably with something like this or similar.
      Code:
      Shell.CreateShortcut(SessionVar.Expand("%StartFolder%\\%AppShortcutFolderName%"), "Log Folder", SessionVar.Expand("%AppFolder%\\Logs"));
      When I did that, it created a second folder identically named (with the %AppFolder% name) in the Start Menu.

      So then I've got:

      AppFolder (correct)
      ..stuff

      AppFolder (duplicate)
      ...with Logs shortcut.

      How can I combine these?

      Thanks!

      Comment


      • #4
        Use the correct folder locations, with the corresponding Session Variables. I have no means to guess where you are creating the folders - what I posted was an example. If you create folders with the same name at different locations then yes, there will be duplicates in the Start menu.

        Ulrich

        Comment


        • #5
          My question is which are the correct Session Variables to use. I would like this new folder shortcut as a "sibling" to the other one that I created using the properties window:

          Click image for larger version

Name:	Screenshot.jpg
Views:	1
Size:	217.5 KB
ID:	284320

          Comment


          • #6
            You would need to use this, if you want to create the shortcut as a sibling to something in "Start menu > AppFolder":
            Code:
            Shell.CreateShortcut(SessionVar.Expand("%StartProgramsFolder%\\%AppShortcutFolderName%"), "Log Folder", SessionVar.Expand("%AppFolder%\\Logs"));
            As the help file states, using this option creates a shortcut in Start menu > Programs > %AppShortcutFolderName%. The Programs folder in the Start menu can be retrieved with %StartProgramsFolder%. Note that there are two of them - for the current user and for all users.

            Ulrich

            Comment


            • #7
              PERFECT! Thank you so much!

              Comment

              Working...
              X