Helen,
I've run into the same thing, and I did a quick fix. I created a batch
file (*.bat) that contained the path of the executing program and then
the filename to open after it. Heck, even LabVIEW can create the .bat
file if it needs to be dynamic. Then call the .bat file from the exec
VI-it knows how to execute a batch file. Try that. It's a quick fix.
Mark
In article <39A170FA.E8543E04@erim-int.com>,
"Helen E. Kourous" wrote:
> (WinNT, LabView 5.1)
>
> Problem: when I wire the string name of the "program" to run to this
vi,
> nothing happens, & get error #42.
> (The VI is in "Communication" or "Advanced" I forget which)
>
> The program which I want to "run" is really a script compiled by
another
> program (V++). ie, th
e extension of the file is ".icl" which is
> registered to V++. The script *wil*l run when I either double-click
on
> it, or type the name of it from the RUN PROGRAM window (under START)
>
> Things I have tried:
>
> -I have added the directory containing the script to the PATH
> environment variable under WinNT system
> -I have hardwired the entire path into the string input of the EXEC
vi.
> -When I wire a known-run-able string such as "notepad" to the EXEC
vi...
> it works!
> -Having V++ both open, and closed when I try this
> -Running both "minimized" as true and false as the optional VI input
>
> Any ideas?
> Is this perhaps a registry issue? or only "windows" executables (with
> .com .exe etc) can be run using "EXEC.vi"?
>
> Thanks in advance...
> -Helen
> --
>
> I have enough money to last me the rest of my life, unless I buy
> something. -Jackie Mason (1931-)
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.