sorry, haven't tried 6.21 yet
this doesn't sound quite right:
"If I try to create a folder that does not exist, like
"C:\\temp\\nosuchdir\\", dos_getdir returns
"C:\\temp\\" and creates "C:\\tempnosuchdir".
do you mean "creates "C:\\temp\\nosuchdir".?
if so or, in fact either way, I would think it would return the newly
created dir, not the one above it.
I would think if it created a dir, that should be the one it returns but
that may not be the designer's intention.
"Steve Doman" <_nospam_sdoman@yahoo.com> wrote in message
news:5902F13EFECEA401D9C952FFE283A374@in.WebX.maYIadrTaRb...
> Hi Mark,
>
> I'm calling dos_getdir like this:
>
> (dos_getdir "Browse for folder" "c:\\temp" "Select a folder to use")
> or
> (dos_getdir)
>
> However, I just now discovered that if I us "C:\\" as the default
directory,
> I'm able to create a new folder just fine. If I try to create a folder
that
> does not exist, like "C:\\temp\\nosuchdir\\", dos_getdir returns
> "C:\\temp\\" and creates "C:\\tempnosuchdir".
>
> So from a directory root, it works perfect. From any other folder it
> doesn't work.
>
> I'm probably running a newer (perhaps broken) version of DosLib.
Surprised
> too that nobody has brought this issue up. DosLib is great btw. Just
> trying to see if this is a bug or something I'm doing wrong.
>
> Thanks,
> Steve doman
>
>
>
>
>
> "Mark Propst" wrote in message
> news:6F3C470A73752EAEF985322F4B76214B@in.WebX.maYIadrTaRb...
> > how are you calling dos_getdir ?
> > when i use it it brings up a dialog with a text box at the top of the
> dialog
> > and the browse for folder dialog below that.
> > if I select a directory from the drop down list, that path shows up in
> text
> > box
> > if i add a path to that path and it didn't exist I'm prompted if i want
to
> > create it.
> > I say yes and the correct directory is created.
> >
> > I'm not sure what you mean by: "dos_getdir will prompt the user for a
text
> > string for a directory
> > name. "
> >
> > are you passing in the 'starting' path for the path arg or nil (thus
using
> > current directory)?
> > it seems to work as i would expect it to.
> > win2k ac2k2 doslib6.0
> >
> >
> > "Steve Doman" <_nospam_sdoman@yahoo.com> wrote in message
> > news:F270CA236B5A8E22CA160823E29E4795@in.WebX.maYIadrTaRb...
> > >
> > > I'm having a problem while running DosLib's "Browse for Directory"
> > function
> > > (dos_getdir). When this function is running and the user tries to add
a
> > new
> > > directory, dos_getdir will prompt the user for a text string for a
> > directory
> > > name. But instead of creating the directory the user typed,
dos_getdir
> > > creates a directory with the parent directory name and the new
directory
> > > name strcat'ed together. Also I've noticed that dos_getdir does not
> > update
> > > the displayed directory tree with the new directory name. This is
> > probably
> > > an OS thing I guess. Or am I doing something wrong, or is this a bug?
> > >
> > > Please try this: (dos_getdir) and try to create a new directory. Does
> > > dos_getdir create and return the correct directory name?
> > >
> > > I'm using Doslib 6.12 on W2k and Win98, and using A2k and A2k4
> > >
> > > Thanks,
> > > Steve Doman
> > >
> > >
> > >
> >
> >
>
>
----------------------------------------------------------------------------
----