Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trouble with (dos_getdir)

14 REPLIES 14
Reply
Message 1 of 15
Anonymous
239 Views, 14 Replies

Trouble with (dos_getdir)

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
14 REPLIES 14
Message 2 of 15
BillZ
in reply to: Anonymous

I don't think getdir is intended to create a directory.

Bill
Message 3 of 15
Anonymous
in reply to: Anonymous

Hi Bill,

If you look at the lower left corner of dos_getdir's dialogue box, you will
see a button with a label that says "New Folder". If you press this button,
dos_getdir will present a textbox with a label that says "Enter a name for
the new folder that you want to create".

Does your version of DosLib do the same?

Thanks,
Steve Doman



"BillZ" wrote in message
news:f1a038c.0@WebX.maYIadrTaRb...
> I don't think getdir is intended to create a directory.
> Bill
>
>
Message 4 of 15
Anonymous
in reply to: Anonymous

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
>
>
>
Message 5 of 15
Anonymous
in reply to: Anonymous

"Steve Doman" <_nospam_sdoman@yahoo.com> wrote in message
news:28E06B106976AA611E4F05BC6A4F9C7F@in.WebX.maYIadrTaRb...
> Hi Bill,
>
> If you look at the lower left corner of dos_getdir's dialogue box, you
will
> see a button with a label that says "New Folder". If you press this
button,
> dos_getdir will present a textbox with a label that says "Enter a name for
> the new folder that you want to create".

Ah! that must be new with 6.xx
I didn't know a new version was out.
6.0 doesn't have the button but it will create a directory as per my other
post
Message 6 of 15
Anonymous
in reply to: Anonymous

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
> >
> >
> >
>
>
Message 7 of 15
BillZ
in reply to: Anonymous

I'm still living in the past!

Sorry.

Bill
Message 8 of 15
Anonymous
in reply to: Anonymous

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
> > >
> > >
> > >
> >
> >
>
>


----------------------------------------------------------------------------
----
Message 9 of 15
Anonymous
in reply to: Anonymous

> do you mean "creates "C:\\temp\\nosuchdir".?

True, it doesn't sound right. But for me, dos_getdir creates
"C:\\tempnosuchdir" and returns "C:\\temp".

If I try to prefix the directory name with a "/" or "\\" in an effort to
delimited the directory name, dos_getdir gives me an alert stating that I'm
using illegal characters.

Thanks for the help however.

Steve Doman



"Mark Propst" wrote in message
news:1DDF0FDF23369840E518887DECC8FE8A@in.WebX.maYIadrTaRb...
> 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.
>
>
Message 10 of 15
Anonymous
in reply to: Anonymous

Thanks anyhow Bill

Steve Doman


"BillZ" wrote in message
news:f1a038c.5@WebX.maYIadrTaRb...
> I'm still living in the past!
> Sorry.
>
> Bill
>
>
Message 11 of 15
Anonymous
in reply to: Anonymous

Hi Steve,

This is a bug. The fix is to download DOSLib 6.1.3 from www.mcneel.com.
Check the help file for what's new and what's fixed.

--

Dale Fugier
Robert McNeel & Associates


"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
>
>
>
Message 12 of 15
Anonymous
in reply to: Anonymous

Excellent Dale! Works perfect now. And I see that you've added a new
function (dos_layerlistbox). Very cool.

I thank you, and my co-workers thank you.

Regards,
Steve Doman



"Dale Fugier" wrote in message
news:739C977C8EA52686094339BEAEC6D155@in.WebX.maYIadrTaRb...
> Hi Steve,
>
> This is a bug. The fix is to download DOSLib 6.1.3 from www.mcneel.com.
> Check the help file for what's new and what's fixed.
>
> --
>
> Dale Fugier
> Robert McNeel & Associates
Message 13 of 15
Anonymous
in reply to: Anonymous

I can't find DOSLib 6.1.3 on www.mcneel.com
It is again 6.1




"Dale Fugier" ha scritto nel messaggio
news:739C977C8EA52686094339BEAEC6D155@in.WebX.maYIadrTaRb...
> Hi Steve,
>
> This is a bug. The fix is to download DOSLib 6.1.3 from www.mcneel.com.
> Check the help file for what's new and what's fixed.
>
> --
>
> Dale Fugier
> Robert McNeel & Associates
>
Message 14 of 15
Anonymous
in reply to: Anonymous

Marc'Antonio,

I too was a bit confused about where to download because the download page
refers to version 6.1, and not 6.1.3

But after you download the file, you'll find that it is indeed version 6.1.3

http://www.mcneel.com/cgi-bin/download.cgi?doslib

Regards,
Steve Doman



"Marc'Antonio Alessi" wrote in message
news:2BFE4003CFC1364658FB85F8ABA96703@in.WebX.maYIadrTaRb...
> I can't find DOSLib 6.1.3 on www.mcneel.com
> It is again 6.1
>
>
>
>
> "Dale Fugier" ha scritto nel messaggio
> news:739C977C8EA52686094339BEAEC6D155@in.WebX.maYIadrTaRb...
> > Hi Steve,
> >
> > This is a bug. The fix is to download DOSLib 6.1.3 from www.mcneel.com.
> > Check the help file for what's new and what's fixed.
> >
> > --
> >
> > Dale Fugier
> > Robert McNeel & Associates
> >
>
Message 15 of 15
Anonymous
in reply to: Anonymous

Thanks.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost