Vbscript 将参数传递给在windows命令提示符下运行的可执行文件

Vbscript 将参数传递给在windows命令提示符下运行的可执行文件,vbscript,cmd,exe,Vbscript,Cmd,Exe,如何在命令提示符中将参数传递给可执行文件(使用vbscript创建并使用vbsedit导入以成为可执行文件) start C:\scripts\myexecutablefile.exe myparameter start”““C:\scripts\myexecutablefile.exe”myparameter-根据此运行exe文件,但可执行文件似乎没有收到传递的参数。下面是我在vbscript(编译为exe之前)中用于获取参数的一段代码:Set Args=WScript.Arguments

如何在命令提示符中将参数传递给可执行文件(使用vbscript创建并使用vbsedit导入以成为可执行文件)

start C:\scripts\myexecutablefile.exe myparameter

start”““C:\scripts\myexecutablefile.exe”myparameter
-根据此运行exe文件,但可执行文件似乎没有收到传递的参数。下面是我在vbscript(编译为exe之前)中用于获取参数的一段代码:Set Args=WScript.Arguments propertyFile=Args(0)您的主vbscript(编译为exe之前)怎么样?它有用吗
wscript.echo“Args.Count=”,Args.Count
可以帮助。。。不用多说了,因为我不知道
vbsedit
…在命令行中使用cscript运行vbscript时效果很好。cscript c:\scripts\myexecutablefile.exe myparameter。非常感谢。