How to use dos command in jscript?

I want to run dos command in JScript. But scripting objects has opus command only.How do I use the dos command in JScript?Does opus have built-in objects?
Can I only use it this way?like this

var cmd = new ActiveXObject("WScript.Shell");
cmd.run("cmd.exe xxxx");

How do I use the dos command in JScript?

Via SetType.

https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Scripting/Command.htm

Does opus have built-in objects?

Yes.

https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Scripting/scriptingobjects.htm

1 Like

thanks,I'm too careless.