Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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
 
 

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
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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.
Name:  Shutdown_switches.jpg
Views: 200
Size:  165.3 KB
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 8.1 Pro RTM x64
 
 

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.
Name:  Capture.PNG
Views: 243
Size:  68.7 KB
Exactly what is it you are trying to do?


My System SpecsSystem Spec
20 Nov 2009   #5

Windows 7 Home Premium 64
 
 

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




Thread Tools



Similar help and support threads for2: Cmd line commands
Thread Forum
setting password - line 1, black dots : line 2, letters & numbers General Discussion
Help Automatating CMD Commands General Discussion
Line by line justification of text in Word 2007 Microsoft Office
Solved Bat commands.. General Discussion
Run commands remembered ? General Discussion
Run Commands - Create Tutorials
Commands in Windows 7 Tutorials

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 06:40 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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 33