Sign In
I know the answer (it's 42)
A blog on coding, .NET, .NET Compact Framework and life in general....
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
About
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Amazing India
C# / .NET / Coding
Everything else
Fun
Garbage Collection
Mango
MIX11
NETCF
Pages
Ruby
Silverlight
Software
Team System
Tech
Technology
User interface
Windows Phone
WP7
WPDT
Archive
Archives
February 2012
(1)
January 2012
(2)
October 2011
(1)
June 2011
(2)
April 2011
(3)
January 2011
(1)
October 2010
(1)
July 2010
(2)
May 2010
(1)
April 2010
(2)
March 2010
(5)
January 2010
(2)
December 2009
(3)
November 2009
(1)
September 2009
(3)
August 2009
(1)
June 2009
(1)
May 2009
(1)
April 2009
(8)
March 2009
(9)
February 2009
(5)
January 2009
(6)
December 2008
(1)
November 2008
(1)
October 2008
(6)
September 2008
(5)
August 2008
(3)
July 2008
(7)
June 2008
(2)
May 2008
(12)
April 2008
(4)
March 2008
(1)
February 2008
(3)
January 2008
(4)
December 2007
(4)
November 2007
(9)
October 2007
(3)
September 2007
(6)
August 2007
(5)
July 2007
(7)
June 2007
(12)
May 2007
(7)
April 2007
(2)
March 2007
(3)
February 2007
(8)
January 2007
(7)
December 2006
(11)
November 2006
(7)
October 2006
(4)
September 2006
(1)
August 2006
(11)
July 2006
(7)
June 2006
(5)
May 2006
(5)
April 2006
(8)
March 2006
(7)
February 2006
(11)
January 2006
(18)
December 2005
(15)
November 2005
(15)
October 2005
(15)
September 2005
(13)
August 2005
(10)
July 2005
(1)
June 2005
(3)
May 2005
(1)
April 2005
(1)
March 2005
(1)
January 2005
(2)
December 2004
(2)
November 2004
(2)
command line tool syntax
MSDN Blogs
>
I know the answer (it's 42)
>
command line tool syntax
command line tool syntax
Abhinaba Basu [MSFT]
20 Jan 2005 4:09 AM
Comments
1
Command line interface (CUI) designs for many of the tools found with VS or in Windows were to include a bunch of individual commands or exe with options or flags.
To get a directory listing:
dir <options>
as in
dir c:\temp /w
To create a directory:
md c:\temp\foo
To delete a directory:
rd /s c:\temp\foo
So even though all the tasks pertain to directory or path handling , you need to know three command to do the task. This design is slowly changing to the format of
command <action> [</options:attributes>]
For example if we change the above commands to this format with the common command called dir, we will be getting
To get a directory listing:
DIR list c:\temp /w
To create a directory:
DIR make c:\temp\foo
To delete a directory:
DIR rem c:\temp\foo /s
So effectively user learning is reduced. One can argue that he still needs to remember the names of the actions. But in the previous case he needs to remember rd, md, dir. Now he knows everything to do with path handling is to be done with DIR. So he can run
DIR /?
to get the list of actions and then do a
DIR list /?
to know the options for listing. The other advantage is namespace pollution in terms of the names of the executables also reduces.
This new format has also been adopted in the VS as in the source control tool. So to get the listing of all workspaces on MyServer you run the command
h.exe workspaces /s:MyServer
To create a new workspace you run the command
h.exe workspace /new MySpace /s:abhinab-test
I guess going forward we will see more and more of the standard OS commands also taking up this format. A very common example is the NET command
1 Comments
User interface
Blog - Comment List MSDN TechNet
Comments
Loading...
Leave a Comment
Name
Comment
Please add 7 and 3 and type the answer here:
Post