473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

What is the convention for Command Prompt window arguments

What is the convention for Command Window arguments?

If I write a program called QQQ that takes one argument should I expect a
user to type:

QQQ arg
QQQ -arg
QQQ /arg

or what?
That is, what is the natural thing for Windows users to expect a program to
looks for?
Thanks
Feb 22 '06 #1
6 1332
" academic" <ac******@a-znet.com> wrote in message
news:ex**************@TK2MSFTNGP09.phx.gbl...
What is the convention for Command Window arguments?
Personal preference? While little command line utilities have their place,
the command line is no one's idea of a modern user interface. <GD&R>
If I write a program called QQQ that takes one argument should I expect a
user to type:

QQQ arg
QQQ -arg
QQQ /arg

or what?
That is, what is the natural thing for Windows users to expect a program
to looks for?


Those of us who grew up on operating systems from DEC see

QQQ /opt1 /opt2 ... /optM filename1, filename2 ... filenameN

as "natural" while those with a 'nix background probably prefer

QQQ -opt1 -opt2 ... -optM filename1, filename2 ... filenameN

and for them it is not unusual (I think) to see intervening white space
between the "-" and the option.

I'd suggest that you allow both forms.

Regards,
Will

Feb 22 '06 #2
Thanks, Windows doesn't have it's own convention? Like maybe none of the
above?


When I retired I was using VAXes
What happened to them.
Is VMS still alive?
I always like the user interface of VMS

"William DePalo [MVP VC++]" <wi***********@mvps.org> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
" academic" <ac******@a-znet.com> wrote in message
news:ex**************@TK2MSFTNGP09.phx.gbl...
What is the convention for Command Window arguments?


Personal preference? While little command line utilities have their place,
the command line is no one's idea of a modern user interface. <GD&R>
If I write a program called QQQ that takes one argument should I expect a
user to type:

QQQ arg
QQQ -arg
QQQ /arg

or what?
That is, what is the natural thing for Windows users to expect a program
to looks for?


Those of us who grew up on operating systems from DEC see

QQQ /opt1 /opt2 ... /optM filename1, filename2 ... filenameN

as "natural" while those with a 'nix background probably prefer

QQQ -opt1 -opt2 ... -optM filename1, filename2 ... filenameN

and for them it is not unusual (I think) to see intervening white space
between the "-" and the option.

I'd suggest that you allow both forms.

Regards,
Will

Feb 22 '06 #3
" academic" <ac******@a-znet.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Thanks, Windows doesn't have it's own convention? Like maybe none of the
above?
Well, I don't know that it is written in stone anywhere, but the notation
using slashes (/) is more common than the one with dashes (-).

Take the dir command for example. If you type

dir /ah

you'll get a listing of files with the hidden attribute. If you type

dir -ah

you'll get a "File not found" message.
When I retired I was using VAXes
What happened to them.
DEC crashed and burned.
Is VMS still alive?
I think that there may still be something called OpenVMS around but I know
nothing about it. You may want to try googling for it.
I always like the user interface of VMS


Well, you can't go wrong with an o/s designed by David Cutler. IMO, his have
been the best there is since the 70s - RSX 11/M, VAX/VMS, Windows NT.

Regards,
Will
Feb 22 '06 #4
>> Thanks, Windows doesn't have it's own convention? Like maybe none of the
above?
Well, I don't know that it is written in stone anywhere, but the notation
using slashes (/) is more common than the one with dashes (-).


/ is indeed more common for win cmd utilities. another universal option is
/? which prints out the listing of all possible options with a bit of
information.
Is VMS still alive?


I think that there may still be something called OpenVMS around but I know
nothing about it. You may want to try googling for it.


www.openvms.org
I wanted to give it a try, but apparently it only runs on true 64 bit
platforms like itanium and alpha. slightly out of budget for me...
I used openvms once in a GPS simulation system, where the VMS machine was
used for maintaining a model of a sattelite constellation in real-time. it
was rock solid. you could throw any abuse at it, and it would keep going.
I remember it had very long command names.
Well, you can't go wrong with an o/s designed by David Cutler. IMO, his
have been the best there is since the 70s - RSX 11/M, VAX/VMS, Windows NT.


I agree. the linux driver model cannot even begin to compare with the NT
based models.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
Feb 22 '06 #5
I think your earlier suggestion to check both makes sense
thanks

"William DePalo [MVP VC++]" <wi***********@mvps.org> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl...
" academic" <ac******@a-znet.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl. ..
Thanks, Windows doesn't have it's own convention? Like maybe none of the
above?


Well, I don't know that it is written in stone anywhere, but the notation
using slashes (/) is more common than the one with dashes (-).

Take the dir command for example. If you type

dir /ah

you'll get a listing of files with the hidden attribute. If you type

dir -ah

you'll get a "File not found" message.
When I retired I was using VAXes
What happened to them.


DEC crashed and burned.
Is VMS still alive?


I think that there may still be something called OpenVMS around but I know
nothing about it. You may want to try googling for it.
I always like the user interface of VMS


Well, you can't go wrong with an o/s designed by David Cutler. IMO, his
have been the best there is since the 70s - RSX 11/M, VAX/VMS, Windows NT.

Regards,
Will

Feb 22 '06 #6
Thanks
"Bruno van Dooren" <br**********************@hotmail.com> wrote in message
news:Op****************@TK2MSFTNGP12.phx.gbl...
Thanks, Windows doesn't have it's own convention? Like maybe none of the
above?


Well, I don't know that it is written in stone anywhere, but the notation
using slashes (/) is more common than the one with dashes (-).


/ is indeed more common for win cmd utilities. another universal option is
/? which prints out the listing of all possible options with a bit of
information.
Is VMS still alive?


I think that there may still be something called OpenVMS around but I
know nothing about it. You may want to try googling for it.


www.openvms.org
I wanted to give it a try, but apparently it only runs on true 64 bit
platforms like itanium and alpha. slightly out of budget for me...
I used openvms once in a GPS simulation system, where the VMS machine was
used for maintaining a model of a sattelite constellation in real-time. it
was rock solid. you could throw any abuse at it, and it would keep going.
I remember it had very long command names.
Well, you can't go wrong with an o/s designed by David Cutler. IMO, his
have been the best there is since the 70s - RSX 11/M, VAX/VMS, Windows
NT.


I agree. the linux driver model cannot even begin to compare with the NT
based models.

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"

Feb 22 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eric Ching | last post by:
Can I run pythonw with a script that takes command line arguments then launches a GUI? I try pythonw myscript.pyw -option arg (etc.) and nothing happens. Nothing, as in I am immediately returned...
1
by: Stephen Woolhead | last post by:
Anyone know where I can get a command prompt control? Something like the command window in visual studion that I can add my own commands? Thanks Stephen.
26
by: Lasse Edsvik | last post by:
Hello I'm trying to build a simple COM+ app in vs.net using C# and i cant register it in component manager..... what more is needed than this: using System; using...
1
by: Jay Feldman | last post by:
I've seen some messages about the screen flashing black for a few moments when executing a program in vb.net this may be because the command prompt settings were changed. when the command prompt...
6
by: PAPutzback | last post by:
The process and execute methods want a path to the executable otherwise they kick out a file not found. So how can I execute the following. It works fine from a command window. echo password|...
5
by: repairman2003 | last post by:
I'm writing a command prompt for unix and I've run into some problems: #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include...
3
by: Steven | last post by:
I am using VC++ 6.0 to build a windows based application, however, my application allows user to input command arguments in the dos prompt windows. I want to have a warning message for user if they...
3
by: =?Utf-8?B?S3VlaXNoaW9uZyBUdQ==?= | last post by:
I have a .NET VC++ program, I want to execute some dos command from the program, e.g. copy some file, and etc. How do I do that?
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.