简体   繁体   中英

Can we pass directory or hashtable object as command line argument to VBscript?

I want to to pass directory or hashtable object as command line argument to vbscript. i am executing VBscript in c# application by using Process.Start() method.By using Process.StartInfo.Arguments we can pass arguments to script, but this takes only string input. Anybody know how to pass data other than string ?

Vbscript doesn't have hashes, the only thing that comes near are dictionary objects but that is not the same. Since you don't know which scripts you want to execute you have to assert the least common deminator and that is string type. So let all your scripts pass the arguments in string to your C function and in this function parse the arguments to the right type to use it in Process.Start

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM