Handling Multiple Command Line Arguments - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
Handling multiple command line arguments has always been ugly in VB
especially when some of the arguments are quoted because they
contain spaces and such. For example, if you wanted to write a program that takes as an argument a filename, you would have to quote the filename to ensure that a space inside of it does not confuse your application. Unfortunately there is no built-in functionality for handling this situation. This is why I wrote two functions: GetParam and GetParamCount
that I use all the time. They both can handle a mix of quoted and unquoted parameters.
在VB中处理多个命令行参数总是很麻烦,尤其当参数包含了空格而需要加引号时更是麻烦。例如,如果你的程序需要一个文件名作为参数,你必须用引号将它括起来以免和其它参数混淆。但VB中没有内建的函数来处理这一问题。于是我编写的两个函数:GetParam 和GetParamCount。它们一起用于处理带用引号括起来的混合参数。
来源: http://www.codeguru.com/vb_misc/1755.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
1862_restore |
 1.1  |
2004-03-06 |
下载 |
|
|