Skip to main content

All Questions

0 votes
1 answer
95 views

I can't insert long paths in the "Target" box in Windows 11 shortcut properties (might consider using vbs or batch)

I'm trying to create a Windows shortcut that will be put in my startup folder. The shortcut starts a program (Discord), but with a 1-minute delay. I'm doing this because my (ancient) core i3-2100 PC ...
Mik's user avatar
  • 11
1 vote
1 answer
325 views

Set Console Colors when Creating Shortcut with PowerShell

I can use code like this to create a shortcut file in PowerShell: $WshShell = New-Object -comObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("$PSScriptRoot/myshortcut.lnk") $...
EllipticalInitial's user avatar
1 vote
1 answer
1k views

Supply target path to shortcut that includes both the program and a file via Powershell

I'm attempting to create a script that creates a shortcut with admin privileges for every Powershell script in a given directory, what I have so far: $scripts = Get-ChildItem -path "C:\Users\djcim\...
ninbura's user avatar
  • 289
0 votes
1 answer
504 views

Remove shortcut key command from unknown windows shortcut

The title is a bit unclear, but I've been playing around with keyboard shortcuts trying to find a way to launch a PowerShell script with a keyboard shortcut. I created the script, made a shortcut to ...
Tanaka Saito's user avatar
0 votes
1 answer
467 views

Do have Windows Shortcuts anything like meta-parameters?

Is it there special parameters that can be passed for targets of windows shortcuts ? Context parameters like: the name of the current shortcut, its full path, shortcut folder name, or others ? Let's ...
Luciano's user avatar
  • 241
1 vote
1 answer
411 views

Trick for opening Powershell at open directory?

If you type "cmd" into the address bar of a window it opens the command line at that directory. Is there a way to do this same with powershell, thus saving you navigating to some deep recess of your ...
Veta's user avatar
  • 313