cmd shortcut laufwerkwechsel
Hallo zusammen,
ich möchte gern einen Shortcut erstellen in dem die Windowskonsole aufgerufen, das laufwerk gewechselt und in ein bestimmtes Verzeichniss gesprungen wird.
Wie ich die einzelnen Schritte solo hinbekomme weiß ich schon:
1. Kontext -> New -> shortcut
2. %windir%system32cmd.exe /K v:
zum wechseln in ein anderes Verzeichniss wäre:
%windir%system32cmd.exe /K cd V:workspaces
aber was muss ich machen damit alles in einem rutscht?
Gruß
Feivel
ich möchte gern einen Shortcut erstellen in dem die Windowskonsole aufgerufen, das laufwerk gewechselt und in ein bestimmtes Verzeichniss gesprungen wird.
Wie ich die einzelnen Schritte solo hinbekomme weiß ich schon:
1. Kontext -> New -> shortcut
2. %windir%system32cmd.exe /K v:
zum wechseln in ein anderes Verzeichniss wäre:
%windir%system32cmd.exe /K cd V:workspaces
aber was muss ich machen damit alles in einem rutscht?
Gruß
Feivel
Please also mark the comments that contributed to the solution of the article
Content-ID: 63730
Url: https://administrator.de/forum/cmd-shortcut-laufwerkwechsel-63730.html
Printed on: May 15, 2025 at 01:05 o'clock
7 Comments
Latest comment

cmd /K cd /d v:\workspaces
gehört in die Verknüpfung
gehört in die Verknüpfung

cmd.exe /K cd /d V:\workspaces
@ Xaero1982
> %windir%\system32\cmd.exe /K cd
> "c:\script"
>
> Wenn ich dich richtig verstanden habe.
hatte ich doch schon s.o.
(%windir%system32cmd.exe /K cd V:workspaces)
@talkinghands
das wird wohl die Lösung sein, probiere
ich gleich mal aus.
Vielen Dank zusammen
Gruß
Feivel
> %windir%\system32\cmd.exe /K cd
> "c:\script"
>
> Wenn ich dich richtig verstanden habe.
hatte ich doch schon s.o.
(%windir%system32cmd.exe /K cd V:workspaces)
@talkinghands
das wird wohl die Lösung sein, probiere
ich gleich mal aus.
Vielen Dank zusammen
Gruß
Feivel
Sorry, mir war nicht klar, dass es dir nicht klar ist, dass das in die Verknüpfung muss...
Alternativ kannste auch mit dem Script:
Set Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("Desktop")
Set link = Shell.CreateShortcut(DesktopPath & "\test.lnk")
link.Arguments = "/K cd c:\script"
link.Description = "test shortcut"
link.HotKey = "CTRL+ALT+SHIFT+X"
link.IconLocation = "%windir%\system32\cmd.exe"
link.TargetPath = "%windir%\system32\cmd.exe"
link.WindowStyle = 3
link.WorkingDirectory = "%windir%"
link.Save
ein shortcut erstellen und die entsprechenden parameter setzen.