Forum Discussion
IonCaza
Jun 02, 2022Copper Contributor
Start menu "run command" doesn't pass parameters
When I try to issue a command like "shutdown -r -t 1" from the start menu, I can briefly see a command prompt opening and issuing just "shutdown".
"-r -t 1" does not get passed onto the command prompt that opens. I reported this bug a while back in the Windows Insider program but nobody addressed it.
Does anyone have any clue how to fix this? Please see screenshots so you can understand what I'm trying to do:
Step 1. Issuing command in start menu
Issuing a command from Start Menu
Step 2. Screen recorded showing command prompt quickly opening and closing and running "shutdown" command but clearly without parameters
Behavior of issuing "shutdown -s -t 1" in Start Menu resulting in the same end result as issuing without parameters
Comparison of "shutdown" output without parameters in a regular command prompt.
Behavior of issuing "shutdown" command without parameters in a regular prompt
- VinceECopper ContributorYea, kind of weird that it does state "Run command" from the Start menu with the full command above it, although only the first parameter gets passed.
- elmuskCopper Contributor
Really really annoying I agree
Try this that works for me (as of Nov 2023)
Right click the start menu
Select 'run'
and old box (code from 1990 probably) appears:
'type the name of a program, folder.. bla bla bla'
now run your batch file with parameters
It should work
- elmuskCopper ContributorOr faster , type windows key + R
Same old box "Open" appears
Then run your batch file with parameters
- emulamerCopper ContributorWith all the awful things in Windows 11 it's hard to pick a worst, but this one's top 5. And it's legitimately a bug and not intentional arbitrary badness like the rest. After you type, it says right there as the highlighted option: "command -with -arguments [Run Command]". That's what it explicitly says it's going to do. And it doesn't.
- IonCazaCopper Contributor
System Info:
- IonCazaCopper Contributor
Lol ... nobody cares about this... Am I the only person trying to run a terminal command from the start menu??
- _Frank_Copper ContributorI prefer to run terminal commands from the start menu, but passing parameters (/arguments) doesnโt work. That really sucks because Windows would be so much more useful if that was possible.