Shortcut auf einen Ordner???

  • Hallo,

    ich möchte einen Shortcut auf einen Ordner erzeugen.

    C:\temp
    --> Shortcut soll auf dem Desktop liegen.

    Es klappt nicht. Kann man wirklich nur Shortcuts auf Dateien - nicht auf Ordner erzeugen?

    Einmal editiert, zuletzt von dost0011 (12. September 2013 um 10:29)

  • [autoit]

    FileCreateShortcut("C:\example", @ScriptDir & "\example.lnk")

    [/autoit]

    Funktioniert bei mir doch wunderbar.
    Immer diese präzisen Problembeschreibungen...

    There's a joke that C has the speed and efficieny of assembly language combined with readability of....assembly language. In other words, it's just a glorified assembly language. - Teh Interwebz

    C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, you blow off your whole leg. - Bjarne Stroustrup
    Genie zu sein, bedeutet für mich, alles zu tun, was ich will. - Klaus Kinski

  • Hi,

    Zitat

    Es klappt nicht.

    Doch, es klappt!

    Zitat

    Kann man wirklich nur Shortcuts auf Dateien - nicht auf Ordner erzeugen?

    Nein...

    Aus der Hilfe kopiert:

    [autoit]

    FileCreateShortcut(@WindowsDir & "\Explorer.exe", @DesktopDir & "\Shortcut Test.lnk", @WindowsDir, "/e,c:", "Dies ist ein Explorerlink", @SystemDir & "\shell32.dll", "^!t", "15", @SW_MINIMIZE

    [/autoit]

    funktioniert einwandfrei

    ...und den Dateinamen entfernt...

    [autoit]

    FileCreateShortcut(@WindowsDir , @DesktopDir & "\Shortcut Test.lnk", @WindowsDir, "/e,c:", "Dies ist ein Explorerlink", @SystemDir & "\shell32.dll", "^!t", "15", @SW_MINIMIZE)

    [/autoit]

    funktioniert ebenfalls einwandfrei!