LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute DOS command in cvi?

I'm looking for a function, which has the similar prototype like DosCMD(char *cmd) and could execute DOS command. Here, cmd could be "# ping 211.22.33.44", or "notepad.exe", or "winhelp", etc.

Thanks!
Jacky
0 Kudos
Message 1 of 2
(5,975 Views)

Executing DOS commands can be obtained in CVI using "system" or LaunchExecutable or LauncExecutableEx functions. Depending on which command you want to execute you may need to call it via the command interpreter command.com or cmd.exe.

Look at these threads that can be useful for your needs:

http://forums.ni.com/ni/board/message?board.id=180&message.id=762&query.id=121092#M762

http://forums.ni.com/ni/board/message?board.id=180&message.id=18772&requireLogin=False

http://forums.ni.com/ni/board/message?board.id=180&message.id=12088&query.id=121063#M12088

 



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 2
(5,969 Views)