Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

dos (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: support

Requires: MathScript RT Module (Windows)



dos(command, '-echo')

[code] = dos(command)

[code] = dos(command, '-echo')

[code, output] = dos(command)

[code, output] = dos(command, '-echo')


Executes a Windows or DOS command in the current working directory. If you call this function in the LabVIEW Run-Time Engine, LabVIEW executes the command in the directory where you installed the stand-alone application or shared library. This function is similar to the System Exec VI.



Name Description
command Specifies the Windows or DOS command you want to execute. command is a string. Before continuing execution, LabVIEW waits for the operating system to finish executing the command. To direct LabVIEW not to wait for the operating system to finish executing the command, include & at the end of the command string.
'-echo' Directs LabVIEW to display the output in the Command Window of the LabVIEW MathScript Window.


Name Description
code Returns the return code of the command.
output Returns the output string of the command.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets No


[code, result] = dos('help')

[code, result] = dos('ipconfig', '-echo');


Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful