LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Executing Command Line

Hello all,

 

   I am trying to execute the Perforce command lines through LabVIEW System Exec. These commands are working propery when directly entered in the command prompt, but through LabVIEW it is not working properly.

 

"P4 client -i  <E:\template.txt"

 

This command will read the file and create a client. Whenever we are doing this kind of  file operation (reading or writing), the command through LabVIEW is not working and the System Exec VI is giving the Standartd error output as  " Usage: client -i [ -f ] Unexpected arguments", but working perfectly in the comand prompt,

 

 

0 Kudos
Message 1 of 4
(3,128 Views)

hi cranen,

  use "cmd/c P4 client -i  <E:\template.txt" as command line input to the system exec.vi.

 

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 2 of 4
(3,123 Views)

 

System Exec.vi is throwing an Error, the command is not valid.

 

0 Kudos
Message 3 of 4
(3,112 Views)

Hi cranen,

  You need to wire the path of the concerned executable file also..

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 4 of 4
(3,109 Views)