LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Txt File Open w/Auto Exec.vi

I'm trying to open a txt file in notepad (opens by default) using the auto exec.vi.
Using several configurations, all of which I made sure could be ran in cmd in stand alone first.

I've tried a few configurations with it but can't seem to work...
In the configuration I gave a picture of below, the error 2 pops up, that I'm out of memory.  There is nothing else running on this system, and with 1GB of memory I can't understand this error.
"LabVIEW:  Memory is full.
=========================
NI-488:  Write detected no Listeners."

The other configuration was to type a string into the "Command Line" input.  Below are the ones I tried...
1) C:\"Documents and Settings"\dleach\desktop\test.txt
Error 123 occurred at System Exec.vi. Command was "C:\"Documents and Settings"\dleach\desktop\test.txt

2) notepad C:\"Documents and Settings"\dleach\desktop\test.txt
Opens Notepad, with error popup "The filename, directory name, or volume label syntax is incorrect."

am I doing this wrong?

Message Edited by leachdor on 09-12-2007 11:30 AM

LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 1 of 4
(2,828 Views)
You should be doing something like this to open a text file in Notepad:


Message Edited by smercurio_fc on 09-12-2007 01:07 PM

0 Kudos
Message 2 of 4
(2,816 Views)
Ah you beat me to the post.

I got the other way to work by changing the address to short hand.

ie..took a long path name (greater than 8 places) and shortened to use "pathxy~1."
Works like a charm.  Didn't need to do that in the dos box alone, I guess they were calling different builds of MSDOS.
(literally all i did was hit backspace 2x, and add a ~1 lol)
LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 3 of 4
(2,809 Views)
Yes, well, the days of 8.3 names are long gone, and you should not be relying on that little trick as it's not standard. You should be using the method I showed you as it uses full pathnames and is the accepted way of doing it.
0 Kudos
Message 4 of 4
(2,805 Views)