LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exac have no privilege

Hi all

i have a CMD script (.bat file) that i'm trying to call from my LabVIEW application .

when i simplly ran the .bat file (by doubble clicikng the file) everythign runs perfectlly

when i try to call the same file, using the system exac function (from within LabVIEW) i get the folowing error :

System error 1314 has occurred.

A required privilege is not held by the client.

 

any ideas how to solve this issue? 

 

thanks in advace 🙂

Reuven Stahl

0 Kudos
Message 1 of 9
(1,754 Views)

Pls share the inputs, which you have provided for System Exec.

Palanivel Thiruvenkadam,
CLA|| CTD
0 Kudos
Message 2 of 9
(1,724 Views)

the entire command is the location of the .bat file, no other inputs are used
(i'm attaching a snippit of the relevent section of the code)

 

thanks 🙂

0 Kudos
Message 3 of 9
(1,716 Views)

Callbat file.png

 

Try this!

Palanivel Thiruvenkadam,
CLA|| CTD
0 Kudos
Message 4 of 9
(1,702 Views)

system exac now return error code 2 (attached is an image of the error)

system-exec-2.PNG

 

 

 

 

 

 

 

 

 

 

Thanks again 🙂 

0 Kudos
Message 5 of 9
(1,671 Views)

Hi Reuven,

 

We have a few knowledgebase articles on this issue, see if either are helpful:

 

Error 2 (Memory Full) When Using the System Exec VI

http://digital.ni.com/public.nsf/allkb/0F61A4BB5B9372CD862576AB007158F7?OpenDocument

 

Error 2 (Memory Full) When Using the System Exec VI

http://digital.ni.com/public.nsf/allkb/EA1600EBA422E97286256AA20073C616?OpenDocument

Austin
Product Support Engineer
National Instruments
0 Kudos
Message 6 of 9
(1,662 Views)

Hi all

thank you both for the helpfull answers 🙂
i found my syntax error in the cmd /c command and fixed it so now the script is running
but the script still returns "standard error" 

System error 1314 has occurred.

A required privilege is not held by the client.

thanks in advance

Reuven Stahl

0 Kudos
Message 7 of 9
(1,648 Views)

Can you share the .bat file itself so we can reproduce your error and then look at how to solve this?

0 Kudos
Message 8 of 9
(1,635 Views)

I'm thinking you probably have to run system exec with admin privileges.  I'm guessing that means running LabVIEW as admin.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 9 of 9
(1,618 Views)