ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is Error Code 267?

I was attempting to use the System Exec.vi to open a text file in Notepad. Each time the vi is called, it returns an error with code 267; LV does not know what this code means. I've tried calling Notepad through a batch file, with no change in the error code. It seems no matter what I try, I get the same error code. We have confirmed the correct command (C:\WINDOWS\NOTEPAD.EXE C:\TEMP\REPORT.TXT for example) by pasting the string in a DOS window and opening the file correctly. Can anyone help me with this problem?
0 Kudos
Message 1 of 2
(25,577 Views)
Hello,

You will get error 267 if the "working directory" input to the System Exec VI is not a valid path to an existing directory. Please double-check your path entry, and also make sure there are no non-printable characters, like extra spaces or carriage returns in the path.

If you continue to have problems, please respond to this post with a small example VI that demonstrates the problem.

Good luck with your application and have a pleasant day.

Sincerely,
Darren N.
NI Applications Engineer
Message 2 of 2
(25,577 Views)