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: How does command prompt work?

30 Nov 2009   #1
Gackybelton

Windows 7
 
 
How does command prompt work?

any help, I have looked in the internet but the tutorials there are no good, HELP!


My System SpecsSystem Spec
.

30 Nov 2009   #2
Dark Nova Gamer

Windows 7 Ultimate, OS X 10.7, Ubuntu 11.04
 
 

Quote   Quote: Originally Posted by Gackybelton View Post
any help, I have looked in the internet but the tutorials there are no good, HELP!
Well, what do you want to do with it? It has far to many uses to list.
My System SpecsSystem Spec
30 Nov 2009   #3
dave1812

Win7
 
 

Quote   Quote: Originally Posted by Gackybelton View Post
any help, I have looked in the internet but the tutorials there are no good, HELP!

If you are familiar with DOS commands, you use them at the Command Prompt. If you don't know them, don't bother with it!!
My System SpecsSystem Spec
.


30 Nov 2009   #4
EAG1945

Windows 7 Home Premium
 
 

To enter the command prompt, click Start and type cmd or command in the Search programs and files box. You should see cmd.exe at the top of the list. Many commands have to be entered as administrator. To do that, right click cmd.exe and chose run as administrator or hold the ctrl & shift keys and click cmd.exe. Once you are in the command prompt you can type "help", without quotes, for a list of commands and a brief list of what they do. For more information about commands, type the command help and the command name. That will give you a list of the commands, parameters that can be used, what they do and how the command and parameters should be typed.
EAG1945
My System SpecsSystem Spec
30 Nov 2009   #5
Barman58

Windows 8.1 Pro x64 x3 + Windows 10 Preview, Ubuntu
 
 

Hi Gackybelton, and welcome to Sevenforums

For a basic guide to the command prompt in windows check put this link

The Windows Command Line, Batch Files, and Scripting- Using the Command Shell

one trick that can help is, if you need to find out more about a command line function type the name of the command and a space and /? or -h, this will open the help for the command ...

For example the dir command is used to display a directory listing of files in a folder the command dir /? gives this help page ....


Code:
C:\Users\Nigel>dir /?
Displays a list of files and subdirectories in a directory.

DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
  [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]

  [drive:][path][filename]
              Specifies drive, directory, and/or files to list.

  /A          Displays files with specified attributes.
  attributes   D  Directories                R  Read-only files
               H  Hidden files               A  Files ready for archiving
               S  System files               I  Not content indexed files
               L  Reparse Points             -  Prefix meaning not
  /B          Uses bare format (no heading information or summary).
  /C          Display the thousand separator in file sizes.  This is the
              default.  Use /-C to disable display of separator.
  /D          Same as wide but files are list sorted by column.
  /L          Uses lowercase.
  /N          New long list format where filenames are on the far right.
  /O          List by files in sorted order.
  sortorder    N  By name (alphabetic)       S  By size (smallest first)
               E  By extension (alphabetic)  D  By date/time (oldest first)
               G  Group directories first    -  Prefix to reverse order
  /P          Pauses after each screenful of information.
  /Q          Display the owner of the file.
  /R          Display alternate data streams of the file.
  /S          Displays files in specified directory and all subdirectories.
  /T          Controls which time field displayed or used for sorting
  timefield   C  Creation
              A  Last Access
              W  Last Written
  /W          Uses wide list format.
  /X          This displays the short names generated for non-8dot3 file
              names.  The format is that of /N with the short name inserted
              before the long name. If no short name is present, blanks are
              displayed in its place.
  /4          Displays four-digit years

Switches may be preset in the DIRCMD environment variable.  Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.
My System SpecsSystem Spec
30 Nov 2009   #6
Frostmourne

Windows 7 Ultimate x86-64
 
 

Quote   Quote: Originally Posted by EAG1945 View Post
To enter the command prompt, click Start and type cmd or command in the Search programs and files box. You should see cmd.exe at the top of the list. Many commands have to be entered as administrator. To do that, right click cmd.exe and chose run as administrator or hold the ctrl & shift keys and click cmd.exe. Once you are in the command prompt you can type "help", without quotes, for a list of commands and a brief list of what they do. For more information about commands, type the command help and the command name. That will give you a list of the commands, parameters that can be used, what they do and how the command and parameters should be typed.
EAG1945
Its Ctrl+Shift+Enter at once.
My System SpecsSystem Spec
30 Nov 2009   #7
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 SP1, Home Premium, 64-bit
 
 

Type "Dos primer" into a google phrase search box for all kinds of introductions to the command prompt.
My System SpecsSystem Spec
02 Dec 2009   #8
Gackybelton

Windows 7
 
 

thanks guys, barman, that site helped me alot thankyou!!
My System SpecsSystem Spec
02 Dec 2009   #9
DeaconFrost

Windows 7 Ultimate x64 SP1
 
 

That has to be the most vague question I've ever seen asked on a computing forum.
My System SpecsSystem Spec
02 Dec 2009   #10
dave1812

Win7
 
 

Quote   Quote: Originally Posted by DeaconFrost View Post
That has to be the most vague question I've ever seen asked on a computing forum.
LOL! Exactly. Prompting someone to start using DOS commands, simply because they expressed confusion over what the command prompt is, seems premature at best; "dangerous" to the OP's Win installation at worst. Oh, well--it's not my PC!
My System SpecsSystem Spec
Reply

 How does command prompt work?




Thread Tools





Similar help and support threads
Thread Forum
Windows 7 logon Locked out Command Prompt Wont work
This is for my sister,I hope someone can help us out... her computer is a windows 7.It shut down one day while she was at work.Message said, computer shut down improperly, so she rebooted it.. it started in safemode. wouldnt go any where else... so we tried the f8 and command prompt and it...
General Discussion
SSH command prompt
Is there any way I can use ssh or something similar to enter command line prompts from my Mac terminal, similar to SSH but windows commands? (From mac to a windows 7 desktop)
Performance & Maintenance
command prompt dosn't work
hello My command prompt somehow dosn't seem to work like i want it to. E.g. I want to enable the administrator account. So i type: net user administrator /active:yes Or i type ipconfig /all or getmac to get the mac address. No matter what command i type i get the message: 'something' is not...
General Discussion
Run administrative command prompt from command prompt
Ok So I got myself into a unique bind here. I was trying to install some custom system files (for a theme) and I did it wrong and now I cant open explorer.exe . I dont want to goto a backup because this is a easy fix. (in my view). So I need to know how to run command prompt with administrative...
General Discussion
command prompt bug ?
Hi, I just tryed to use cmd as usual but it seems that I can't explore an other HDD than C: It bugs me I don't understand why i'm the only user on my computer and I am admin on it I at home so it should work but when I type "cd d:" I get that : ...
General Discussion
Command Prompt command <ipconfig> not working
when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line: 'ipconfig' is nto recognized as an internal or external command, operable program, or batch file I am trying to find out the information I need in order to set up a static IP Address for port...
Network & Sharing

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 20:29.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App