如何编写可以在运行时排除参数的vb代码
how o write vb code which can except parameter at runtime
例如.我的 exe 是readfile.exe",如果我想给文件名 rom 命令行,要执行的命令将是
ex. My exe is "readfile.exe" and if i want to give file name rom command line the command to be executed will be
readfile.exe 文件名
readfile.exe filename
它应该接受文件名参数并执行操作
it should take the file name parameter and perform the action
推荐答案看看 Command 函数,它应该给你所有传入的参数.
Look at the Command function, that should give you all the parameters that were passed in.
我在网上找不到它的 VB6 文档,但 MSDN 有 VBA 版本的文档,而且通常是相同的,所以我建议查看 这里了解更多信息.它甚至还有一个完整的示例这里.
I can't find the VB6 docs for it online, but MSDN have the docs for the VBA version, and that's usually the same so I'd suggest looking here for more info. And it even has a full sample here.
更多推荐
exe 接受运行时参数
发布评论