LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Command Line Parameters for Run Application.vi in the LVWUtil

I am trying to use the "Run Application.vi" located in the LVWUtil.llb.  I am sending a command line similiar to this:
 

"C:\WINXP\system32\msiexec.exe" /i "C:\qc data\ZVMS Program Updates\Application Installer\install.msi"

this command line works from the Start>Run dialog but the Run Application.vi only sees the beginning of the line "C:\WINXP\system32\msiexec.exe" so it opens the windows installler but does not go to the install.msi file and run it.  Does anyone know the correct command line formats for the Run Application.vi to run the entire command line?

 

Thanks,

 

BethV

0 Kudos
Message 1 of 3
(4,249 Views)
Hello BethV,
 
I downloaded the LVWUtil32.zip file from the Windows API Function Utilities (32-bit) for LabVIEW example program.  In that zip file, is a library entitled Winevent.lib, which includes the Run Application.vi.  When you used this VI, I believe the string you passed in as a input had too many quotation marks.  Namely, you do not need quotes around the msiexec.exe call.  I passed the following string into the Run Application.vi and got the expected results:
 
C:\WINDOWS\system32\msiexec.exe /i "C:\mymsi.msi"
Please let me know if it helps.
 

Message Edited by Wendy L on 10-21-2005 02:34 PM

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 3
(4,239 Views)
Wendy L
 
Thanks for your reply.  Actually the issue wasn't with the set of quotation marks around the msiexec.exe  call. I am reading the command line from a previously created file and each command was written to be on a new line in that file, when reading the command line I was, of course, geting the carriage return at the end of the line. I wasn't seeing it because my command line text indicator was only one line high. Once I removed the carriage return the command line was executed properly.
 
Thank you again for your reply.
 
BethV
0 Kudos
Message 3 of 3
(4,224 Views)