Question:
what is Microsoft Command-line switches?
anonymous
2007-12-31 18:26:50 UTC
Hi all,

Happy 2008~!

I would like to ask what is Microsoft Command-line switches??
Is it a external program which not in-built in Windows? If it is in-built where can I open it in Windows XP?

Cheers~!
Five answers:
ADad
2007-12-31 18:36:17 UTC
a command line switch is an argument you use when starting a command line program.



a command line program is started from a command prompt



you call a command prompt up by going to start / run and typeing cmd.
anonymous
2014-07-21 09:24:11 UTC
challenging task try searching using google and yahoo that will could help
anonymous
2008-01-01 02:39:04 UTC
A command-line switch is a parameter passed to a program. For example, if you launch the DOS window:



Start->Programs->run

type command (or cmd) and press enter



Then type dir (press enter)



This gives you the entire contents of the current directory, which will scroll by so fast you can't see it.



But if you add the /p switch, which means to display the directory in pages,



dir /p (press enter)



It will only display what's able to fit on the screen with "press any key to continue . . . " at the bottom.



The /p is the command line switch for the DOS program DIR, which displays directory contents.
The Phlebob
2008-01-01 02:35:40 UTC
There is no such entity as "Microsoft Command-line switches". Many programs, such as Word and Excel, have command-line switches, which are little codes usable on the old MS-DOS command-line.



For instance, MS Word can be called up from the command line with this:



winword.exe /m



Here "winword.exe" is the name of the program file and "/m" is a particular command line switch that MS Word (winword.exe) recognizes.



Hope that helps.
Cipher
2008-01-01 02:35:29 UTC
No a switch is a parameter passed to a command line command.

For example at the command line (Goto Run: cmd ) to get a console.



A '/?' is a switch for help on a command, so if you want help with the dir command, you would type > dir /?



Also, if you wanted the directory listing to pause for a long list you could type > dir /p



Switches will vary by command, but you can use /? to usually list them.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...