联盟首页 协同开发 共创软件 开放源码 软件工程 共创论坛 关于联盟
  您的位置 » 开放源码库【成熟 - 项目摘要 首页 | 分类源码 | 提交源码 | 下载统计 | 原创源码 | 成熟源码 | 代码片断
 
 Handling Multiple Command Line Arguments - 项目摘要
摘要 | 管理 | 论坛
文档 | 软件包

源码库中源码数量为19221
有贡献人员名单:

-= 更多 =-
  • ffdshow
  • jasperreports
  • PoolMan
  • Air Traffic Controller
  • virtualdub-win
  • CppUnit
  • Apache-SSL-Jserv
  • FCK editor
  • Async Professional
  • GLgraph
  • -= 更多 =-

    项目描述:
    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 下载

    原始下载连接(国外) http://www.codeguru.com/vb_general/1862_restore.zip
    http://www.codeguru.com/code/legacy/vb_general/1862_restore.zip

      » 合 作 伙 伴