Category : shortcut

I usually never have programming problems because I can easily find the answer to most of them. But I am at my wits’ end on this issue. The well known way of creating a Windows shortcut in Powershell is as follows: $WshShell = New-Object -comObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("F:pathtoshortcut.lnk") $Shortcut.TargetPath = "F:someotherpathtotargetfile.txt" $Shortcut.Save() However, this ..

Read more

I want to have a shortcut on my desktop that opens cmd, navigates to my Angular directory and runs the command ng serve -o Adding this to a shortcut will open the right directory: %windir%system32cmd.exe /k " cd & cd "C:MyAngularDirectory" However when I add another (Angular cli) command it does not execute automatically. This ..

Read more