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
Semisane

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
satchmo

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

64-bit Windows 10
 
 

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
Dwarf

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
satchmo

Windows 7 Home Premium 64
 
 

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

Windows 7 Ultimate x86-64
 
 

My System SpecsSystem Spec
20 Nov 2009   #7
pparks1

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
Peter2

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
Semisane

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
Thread Forum
cmd line way to mute line in realtek hd audio card
I have a line of music audio entering my realtek card to accompany a powerpoint slideshow, together they go out on our community cable channel. I need to kill the input, the music audio that is directly plugged into the card in the back of the pc, so that when I schedule a video (bod meeting...
Sound & Audio
setting password - line 1, black dots : line 2, letters & numbers
When setting a password for user, when I type it, it shows up as black dots but when I retype the next line, it shows up as the letters, numbers and symbols that I'm typing. It won't let me set it. What the heck is going on? Thanks
General Discussion
Line by line justification of text in Word 2007
Hello I would like to know if its possible (and how to do it if so) to justify a paragraph of text in Word 2007 to gradually get narrower. What I mean is, id like the first line of text to be longer than the one after and so on until I end up with something like this: ...
Microsoft Office
Bat commands..
Okay im trying to make a mini-fool for my friend :D And i want to my friend donot see the bat file Is this the code to he cant see it? attrib +h %0 Thanks. - kuchiyo
General Discussion
Run Commands - Create
How to Create Custom Run Commands Using the Run / Start Search command in Windows you can use certain pre-defined commands to open up applications like we open MSCONFIG etc. Here are the Steps 1. Go to Start under Start Search type in Regedit and Hit Enter
Tutorials
Commands in Windows 7
Commands in Windows 7 If you like to work with Command Prompt commands here some new or Modified commands uses in Windows 7. For a more detailed explanation of all commands in Windows below, see: Command-Line Reference Windows Command Reference
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 13:33.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App