SCOUG-Programming Mailing List Archives
Return to [ 22 |
August |
2005 ]
>> Next Message >>
Content Type: text/plain
I have a program CDN which currently uses the command line parameter /?
to display Help. Running CDN with no parameters displays a list of
current directory information and I don't want to change that, i.e. I
don't want CDN without parameters to instead display the Help screen.
But now I want to add a "mask" so you can see current directory
information for just the directories whose names match the "mask".
The problem is "/?". It looks like a mask and it is conceivable that
someday somebody is going to want to display the information for all the
subdirectories in the root directory which are only one character long.
THE QUESTION: It's easy for me to simply code for "/?" being a special
case. But are there any options I haven't thought of so that a mask of
"/?" can be used?
Here are examples of CDN command lines:
CDN [this displays a numbered list of all current-directory subdirectories]
CDN /? [this displays the Help screen]
CDN 27 [this switches to the 27th subdirectory]
CDN 2005* [this displays all subdirectory names that begin with 2005]
CDN 2005* 27 [this switches to the 27th subdirectory in the 2005* list]
- Peter
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
>> Next Message >>
Return to [ 22 |
August |
2005 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|