LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VOL command does not work for System Exec.vi

I was trying to get the system Volume Serial Number for my Windows XP using the "VOL" command for System Exec.vi. The command works for ipconfig/all and similar others, but for VOL command it does not give the standard output.
0 Kudos
Message 1 of 6
(2,979 Views)
Use the attached vi to get volume serial number info. There is something different about using System Exec to execute built in DOS commands, like dir, time, vol, etc... This vi shows how to do it.
- tbob

Inventor of the WORM Global
Message 2 of 6
(2,979 Views)
The attached VI is written with LabVIEW 7.1 and I can not open it with my 6.1 version. Can you convert it to 6.1, or explain in detail, so that it works for me.
0 Kudos
Message 3 of 6
(2,979 Views)
Hi,
the command used is
cmd /k vol
Hope that helps

Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 4 of 6
(2,979 Views)
Thank you very much. It works great.
0 Kudos
Message 5 of 6
(2,979 Views)
Sorry, I could not save my vi in an earlier version. System Exec would not save to earlier version. But Sacha Emery's suggestion to use "cmd /k vol" works. My vi had "cmd" and the command separated into two inputs, "cmd" into command input and the actual command into standard input. However, when I tried to recreate it in 6.1, the output would always give the "More?" response.
- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 6
(2,979 Views)