Windows 7 Forums


Windows 7: Cmd line commands

20 Nov 2009   #1

Windows 7 Ultimate RTM
 
 
Cmd line commands

Hi there

First post on this forum

I have an issue with the command line of Windows 7. Whenever I type in the shutdown command in an elevated console, I simply get a list of available arguments.

Similar to typing shutdown /?



Any advice would be much appreciated

Thanks
My System SpecsSystem Spec

20 Nov 2009   #2

Windows 7 Home Premium 64
Long Beach, CA
 
 

Hmm...I have never tried to shutdown the computer from the command line before.

I didn't even know that it's possible.
My System SpecsSystem Spec
20 Nov 2009   #3

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Semisane, and welcome to Seven Forums.

Normally you have to type shutdown with a switch like shutdown /f or shutdown -f for this. When typing shutdown by itself, it is the same as typing the shutdown /? command.

See top No args item below.
Cmd line commands-shutdown_switches.jpg
If you would like a shutdown shortcut, you can use the one below if you like.

Shutdown shortcut - Vista Forums

Hope this helps,
Shawn
My System SpecsSystem Spec
.


20 Nov 2009   #4

Windows 7 Ultimate x64 Service Pack 1
Doncaster, UK
 
 

Hi Semisane and welcome to Windows 7 Forums

This might explain it. As you can see, entering the command without any parameters defaults to showing the help for it.
Cmd line commands-capture.png
Exactly what is it you are trying to do?
My System SpecsSystem Spec
20 Nov 2009   #5

Windows 7 Home Premium 64
Long Beach, CA
 
 

I learn something here every day.
My System SpecsSystem Spec
20 Nov 2009   #6

Windows 7 Ultimate x86-64
 
 

My System SpecsSystem Spec
20 Nov 2009   #7

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by satchmo View Post
Hmm...I have never tried to shutdown the computer from the command line before.

I didn't even know that it's possible.
Just about anything that you can do within the GUI has a command line equivalent. In addition, many command line tools provide far more options than their GUI counterparts.
My System SpecsSystem Spec
20 Nov 2009   #8

Windows 7 Ultimate 32-bit
 
 

you should run cmd in administrator mode before using commands like shutdown /s
to turn that off (which i do not recommend), turn of UAC at control panel > useraccounts
My System SpecsSystem Spec
22 Nov 2009   #9

Windows 7 Ultimate RTM
 
 

Hi there!

Thanks for that. Should read a bit better next time!!

Yeah I bought the SIdewinder x6 keyboard. So want to do a shutdown shortcut key

You guys cant point me in the right direction for some nice batch scripting tutorials

Thanks!
My System SpecsSystem Spec
Reply

 Cmd line commands problems?



Thread Tools



Similar help and support threads for: Cmd line commands
Thread Forum
Line by line justification of text in Word 2007 Microsoft Office
Solved Definitions of Commands General Discussion
Solved Bat commands.. General Discussion
Commands in Windows 7 Tutorials


All times are GMT -5. The time now is 12:20 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32