Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What are the slashes with letters for – as seen in set /p or for /f etc?

share|improve this question

migrated from May 3 '13 at 13:27

This question came from our site for professional and enthusiast programmers.

Some command even take more than one letter, e.g. Start /max CMD.EXE. There's also a /min option to Start, so /m` would be quite ambiguous. – MSalters May 3 '13 at 13:44
up vote 5 down vote accepted

They are "command line switches", and you use them to give a command more information about what you want it to do.

For example, the dir command lists the files in the working directory, one file per line. If you say dir /w then it lists them in "wide" format, with several files per line. /w is a "command line switch".

To find out information about a particular switch, you need to read the documentation for the command it relates to. For dir, you can type dir /? - the /? switch tells the command to give you help about how it works, including the switches that it accepts.

The two commands you mention, set and for, also accept the /? switch.

share|improve this answer
nearly every command has a "help switch", normally /? . Try for example set /? or for /? – Stephan May 3 '13 at 10:32
thank you, i'm going to see this! – Swillfreat May 3 '13 at 13:34

The slashes are parameters

If you want to know what parameter for, add "/?" in your command

For example :

copy /? --> this will show you all about copy command
share|improve this answer
Yeah, but what i wanted to know was what the letters after the slashes mean. – Swillfreat May 3 '13 at 19:42
@Swillfreat: As the other answer states, the meaning of the letters is specific to each program/command. Use program_name /? or /h or -? or -h or --help etc. – Karan May 4 '13 at 1:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .