LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Just a file dialog ?

hi, how can i select a directory using "file dialog" function in "windowsNT"
environment ?
non of the options allows to select a directory, just open it.
the file dialog for w98 has a button to select the directory ,"select
current directory ".
but for windowsNT, it doesn't exist
thanx.
ozan...

ps : please look at attach.



[Attachment file dialog.zip, see below]


[See first answer for additional information]
0 Kudos
Message 1 of 6
(2,871 Views)
[Attachment(s) for question]
0 Kudos
Message 2 of 6
(2,871 Views)
Ozan ONER schrieb in im Newsbeitrag:
<3857671f@newsgroups.ni.com>...
> hi, how can i select a directory using "file dialog" function in
"windowsNT"
> environment ?
> non of the options allows to select a directory, just open it.
> the file dialog for w98 has a button to select the directory ,"select
> current directory ".
> but for windowsNT, it doesn't exist
> thanx.
> ozan...
>
> ps : please look at attach.

Hi!

If you only want to select a directory
don't use Open/Create/Replace File.vi .
Try the "File Dialog" Advanced File Function.
(select mode = 3)

!!! ANOTHER QUESTION: !!!
Does anyone know a file dialog function or an example
which allows to select more than one file ?
(e.g. returning an array of paths)

robert
0 Kudos
Message 3 of 6
(2,871 Views)
To select a group of files, you could use the List Directory function
in the Advanced File function palette and feed the filename output
array into a multiple select listbox control attribute node. Create an
attribute node for the listbox and wire the filename string array
output from the List Directory function to the Strings attribute of the
listbox to initialize it. Use the output from the listbox to index the
array of filenames (you'll have to use a loop) and build a new array
corresponding to you selection.


* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!
0 Kudos
Message 4 of 6
(2,871 Views)
Robert Luftensteiner wrote in message
news:385794e8$0$20680@SSP1NO17.highway.telekom.at...
> Ozan ONER schrieb in im Newsbeitrag:
> <3857671f@newsgroups.ni.com>...
> > hi, how can i select a directory using "file dialog" function in
> "windowsNT"
> > environment ?
> > non of the options allows to select a directory, just open it.
> > the file dialog for w98 has a button to select the directory ,"select
> > current directory ".
> > but for windowsNT, it doesn't exist
> > thanx.
> > ozan...
> >
> > ps : please look at attach.
>
> Hi!
>
> If you only want to select a directory
> don't use Open/Create/Replace File.vi .
> Try the "File Dialog" Advanced File Function.
> (select mode = 3)
>

hi robert,

as i sad ea
rlier, i am trying to select a directory using "File Dialog" in
advanced functions in the winNT.
and the select mode ==3;

i am not using a function related to file opening or stg else.

therefore, i am asking again, how can i select a directory? i think, it is
impossible 🙂
i dont want to write a new file dialog function for winNT to select a
directory.

the problem is related with winNT, i think.

thanx.
ozan...
0 Kudos
Message 5 of 6
(2,871 Views)
to point out the obvious, you could have the user select a file int he
directory, then strip the path...

not beuatiful, but functional

torleiv

Ozan ONER wrote:
>
> Robert Luftensteiner wrote in message
> news:385794e8$0$20680@SSP1NO17.highway.telekom.at...
> > Ozan ONER schrieb in im Newsbeitrag:
> > <3857671f@newsgroups.ni.com>...
> > > hi, how can i select a directory using "file dialog" function in
> > "windowsNT"
> > > environment ?
> > > non of the options allows to select a directory, just open it.
> > > the file dialog for w98 has a button to select the directory ,"select
> > > current directory ".
> > > but for windowsNT, it doesn't exist
> > > thanx.
> > > ozan...
> > >
> >
> ps : please look at attach.
> >
> > Hi!
> >
> > If you only want to select a directory
> > don't use Open/Create/Replace File.vi .
> > Try the "File Dialog" Advanced File Function.
> > (select mode = 3)
> >
>
> hi robert,
>
> as i sad earlier, i am trying to select a directory using "File Dialog" in
> advanced functions in the winNT.
> and the select mode ==3;
>
> i am not using a function related to file opening or stg else.
>
> therefore, i am asking again, how can i select a directory? i think, it is
> impossible 🙂
> i dont want to write a new file dialog function for winNT to select a
> directory.
>
> the problem is related with winNT, i think.
>
> thanx.
> ozan...
0 Kudos
Message 6 of 6
(2,871 Views)