exe with accepting runtime parameter

前端 未结 2 967
情歌与酒
情歌与酒 2020-12-07 05:58

how o write vb code which can except parameter at runtime

ex. My exe is \"readfile.exe\" and if i want to give file name rom command line the command to be executed

2条回答
  •  余生分开走
    2020-12-07 06:29

    Look at the Command function, that should give you all the parameters that were passed in.

    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.

提交回复
热议问题