LabVIEW Wiki Home
Menu
Navigation

. Home
. Contents
. Recent changes
. Random page
. Help
. Donations

Toolbox

. What links here
. Related changes
. Upload file
. Special pages
. Printable version
. Permanent link










> Shell Command

The exec VI function can be used to send shell commands. Include the shell call with the commands that are desired. Under Windows 2K/XP/Vista operating systems the call is to cmd.exe. For example, the string to copy filea to a drive would be

CODE

cmd /C "copy filea a:"

with the arguments enclosed in quotes. The exact shell call will depend on the operating system. For Windows 98/ME it is command.com.

To open a document with its associated application, use the start command.

CODE

cmd /C "start "" "c:\document.txt"

will open document.txt with Notepad (Windows default).


Content is available under Creative Commons Attribution License 3.0  About LabVIEW Wiki  Disclaimers  LabVIEW™ is a Trademark of National Instruments Corp.
Creative Commons Attribution License 3.0
IpbWikiPowered by MediaWiki
Powered by WebRing.