LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PsExec.exe Runing on labview2012 with System Exec.vi

Solved!
Go to solution

I have problem on this,it report erroe to run PsExec.exe using "System Exec.vi". It runs well on Labview8.6 version,but has problems on Labview2012. Could someone give some help?

0 Kudos
Message 1 of 8
(2,921 Views)

Which error does it report?

What is "PSExec.exe"?

How do you call it?

 

Did you change the PC or the OS too or just used a newer LabVIEW version?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(2,900 Views)

Checked with LabVIEW 2013 and works without any problems.

Which error exactly you have?

One point for PsExec - when it runs first time on the PC, then EULA dialog is coming up and needs to be accepted. If you set flag Run Minimized, then this dialog will be "invisible", but SystemExec will wait for acknowledgement.

Hint - you can set up registry flag EulaAccepted in HKCU\Software\Sysinternals\PsExec to 1 (DWORD) - then this dialog will be suppressed.

 

Andrey.

 

0 Kudos
Message 3 of 8
(2,888 Views)

Should this works?but it report the error

0 Kudos
Message 4 of 8
(2,879 Views)
Solution
Accepted by topic author ll48263046

What about using "cmd /c PsExec.exe" as command string?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 8
(2,870 Views)

Are you sure that PsExec placed into the directory which is in PATH variable.

Try to give full path to PsExec.exe. For example, copy this utility to C:\ and then call it as C:\PsExec.exe.

 

0 Kudos
Message 6 of 8
(2,867 Views)

What about using "cmd /c PsExec.exe" as command string?

 

Thanks a lot.

It works now, the Labview 2012 are strict at this, i am sure to try this but make a mistake by input "/c PsExec"

0 Kudos
Message 7 of 8
(2,852 Views)

I tried again, it is not the cmd /c problem.It is the path problem.

Before i put it into C:\windows\system32 ,it didn't work. So i put it into C:\ and make the input command to C:\\PsExec.exe .it runs well now.

But i am still confuse why put it into system32 it didn't work, and report the error 'psExec' is not recognized as an internal or external command,
operable program or batch file."

0 Kudos
Message 8 of 8
(2,845 Views)