exe 接受运行时参数

编程入门 行业动态 更新时间:2024-10-28 00:27:34
本文介绍了exe 接受运行时参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何编写可以在运行时排除参数的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 接受运行时参数

本文发布于:2023-11-16 14:59:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1605329.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:参数   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!