. Creating Directories / Folders

. Creating Directories / Folders

Anonymous
Not applicable
193 Views
12 Replies
Message 1 of 13

. Creating Directories / Folders

Anonymous
Not applicable
Which is the easiest or neatest way to create new folders or directories -
Using LISP or VLISP - AutoCAD 14 & 2000

(Preferably - without using "SH")

Thanks

V Abela
0 Likes
194 Views
12 Replies
Replies (12)
Message 2 of 13

Anonymous
Not applicable
You can use VL-MKDIR: (vl-mkdir "c:\\test")

Returns T if sucessful, nil otherwise

--
Get free software and more at http://www2.stonemedia.com/franko

"AES" wrote in message
news:89mr3t$him19@adesknews2.autodesk.com...
> Which is the easiest or neatest way to create new folders or directories -
> Using LISP or VLISP - AutoCAD 14 & 2000
>
> (Preferably - without using "SH")
>
> Thanks
>
> V Abela
>
>
>
0 Likes
Message 3 of 13

Anonymous
Not applicable
Download DOSLib from www.mcneel.com. Unlike the (VL-MKDIR), DOSLib's
(DOS_MKDIR) function works in both R14 (LISP and A2K (VLISP). And hey, it's
free.

--

Dale Fugier
Robert McNeel & Associates
www.mcneel.com

"Frank Oquendo" wrote in message
news:89mrtv$hh725@adesknews2.autodesk.com...
> You can use VL-MKDIR: (vl-mkdir "c:\\test")
>
> Returns T if sucessful, nil otherwise
>
> --
> Get free software and more at http://www2.stonemedia.com/franko
>
>
> "AES" wrote in message
> news:89mr3t$him19@adesknews2.autodesk.com...
> > Which is the easiest or neatest way to create new folders or
directories -
> > Using LISP or VLISP - AutoCAD 14 & 2000
> >
> > (Preferably - without using "SH")
> >
> > Thanks
> >
> > V Abela
> >
> >
> >
>
>
0 Likes
Message 4 of 13

Anonymous
Not applicable
I need to use it for AutoCAD 14 as well

Frank Oquendo wrote in message
news:89mrtv$hh725@adesknews2.autodesk.com...
> You can use VL-MKDIR: (vl-mkdir "c:\\test")
>
> Returns T if sucessful, nil otherwise
>
> --
> Get free software and more at http://www2.stonemedia.com/franko
>
>
> "AES" wrote in message
> news:89mr3t$him19@adesknews2.autodesk.com...
> > Which is the easiest or neatest way to create new folders or
directories -
> > Using LISP or VLISP - AutoCAD 14 & 2000
> >
> > (Preferably - without using "SH")
> >
> > Thanks
> >
> > V Abela
> >
> >
> >
>
>
0 Likes
Message 5 of 13

Anonymous
Not applicable
Thanks, but

Must work with AutoCAD 14 - As well

V Abela

Frank Oquendo wrote in message
news:89mrtv$hh725@adesknews2.autodesk.com...
> You can use VL-MKDIR: (vl-mkdir "c:\\test")
>
> Returns T if sucessful, nil otherwise
>
> --
> Get free software and more at http://www2.stonemedia.com/franko
>
>
> "AES" wrote in message
> news:89mr3t$him19@adesknews2.autodesk.com...
> > Which is the easiest or neatest way to create new folders or
directories -
> > Using LISP or VLISP - AutoCAD 14 & 2000
> >
> > (Preferably - without using "SH")
> >
> > Thanks
> >
> > V Abela
> >
> >
> >
>
>
0 Likes
Message 6 of 13

Anonymous
Not applicable
Must be in LISP or VLISP - cannot use 3rd party

Thanks
V Abela

Dale Fugier wrote in message
news:89msed$hhj16@adesknews2.autodesk.com...
> Download DOSLib from www.mcneel.com. Unlike the (VL-MKDIR), DOSLib's
> (DOS_MKDIR) function works in both R14 (LISP and A2K (VLISP). And hey,
it's
> free.
>
> --
>
> Dale Fugier
> Robert McNeel & Associates
> www.mcneel.com
>
>
> "Frank Oquendo" wrote in message
> news:89mrtv$hh725@adesknews2.autodesk.com...
> > You can use VL-MKDIR: (vl-mkdir "c:\\test")
> >
> > Returns T if sucessful, nil otherwise
> >
> > --
> > Get free software and more at http://www2.stonemedia.com/franko
> >
> >
> > "AES" wrote in message
> > news:89mr3t$him19@adesknews2.autodesk.com...
> > > Which is the easiest or neatest way to create new folders or
> directories -
> > > Using LISP or VLISP - AutoCAD 14 & 2000
> > >
> > > (Preferably - without using "SH")
> > >
> > > Thanks
> > >
> > > V Abela
> > >
> > >
> > >
> >
> >
>
>
0 Likes
Message 7 of 13

Anonymous
Not applicable
Okay....

(command "._SH" (strcat "MKDIR " dirname))

You can also use a different PGP command that will not
display the DOS window.

AES wrote:
>
> Must be in LISP or VLISP - cannot use 3rd party
>
> Thanks
> V Abela
>
> Dale Fugier wrote in message
> news:89msed$hhj16@adesknews2.autodesk.com...
> > Download DOSLib from www.mcneel.com. Unlike the (VL-MKDIR), DOSLib's
> > (DOS_MKDIR) function works in both R14 (LISP and A2K (VLISP). And hey,
> it's
> > free.
> >
> > --
> >
> > Dale Fugier
> > Robert McNeel & Associates
> > www.mcneel.com
> >
> >
> > "Frank Oquendo" wrote in message
> > news:89mrtv$hh725@adesknews2.autodesk.com...
> > > You can use VL-MKDIR: (vl-mkdir "c:\\test")
> > >
> > > Returns T if sucessful, nil otherwise
> > >
> > > --
> > > Get free software and more at http://www2.stonemedia.com/franko
> > >
> > >
> > > "AES" wrote in message
> > > news:89mr3t$him19@adesknews2.autodesk.com...
> > > > Which is the easiest or neatest way to create new folders or
> > directories -
> > > > Using LISP or VLISP - AutoCAD 14 & 2000
> > > >
> > > > (Preferably - without using "SH")
> > > >
> > > > Thanks
> > > >
> > > > V Abela
> > > >
> > > >
> > > >
> > >
> > >
> >
> >

--
/*********************************************************/
/* Tony Tanzillo Design Automation Consulting */
/* Programming & Customization for AutoCAD & Compatibles */
/* ----------------------------------------------------- */
/* tony.tanzillo@worldnet.att.net */
/* http://ourworld.compuserve.com/homepages/tonyt */
/*********************************************************/
0 Likes
Message 8 of 13

Anonymous
Not applicable
Thanks Tony

But would realy prefer not to use the "Shell" command

Victor

Tony Tanzillo wrote in message
news:38BF0114.EEA04C73@worldnet.att.net...
> Okay....
>
> (command "._SH" (strcat "MKDIR " dirname))
>
> You can also use a different PGP command that will not
> display the DOS window.
>
> AES wrote:
> >
> > Must be in LISP or VLISP - cannot use 3rd party
> >
> > Thanks
> > V Abela
> >
> > Dale Fugier wrote in message
> > news:89msed$hhj16@adesknews2.autodesk.com...
> > > Download DOSLib from www.mcneel.com. Unlike the (VL-MKDIR), DOSLib's
> > > (DOS_MKDIR) function works in both R14 (LISP and A2K (VLISP). And
hey,
> > it's
> > > free.
> > >
> > > --
> > >
> > > Dale Fugier
> > > Robert McNeel & Associates
> > > www.mcneel.com
> > >
> > >
> > > "Frank Oquendo" wrote in message
> > > news:89mrtv$hh725@adesknews2.autodesk.com...
> > > > You can use VL-MKDIR: (vl-mkdir "c:\\test")
> > > >
> > > > Returns T if sucessful, nil otherwise
> > > >
> > > > --
> > > > Get free software and more at http://www2.stonemedia.com/franko
> > > >
> > > >
> > > > "AES" wrote in message
> > > > news:89mr3t$him19@adesknews2.autodesk.com...
> > > > > Which is the easiest or neatest way to create new folders or
> > > directories -
> > > > > Using LISP or VLISP - AutoCAD 14 & 2000
> > > > >
> > > > > (Preferably - without using "SH")
> > > > >
> > > > > Thanks
> > > > >
> > > > > V Abela
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
>
> --
> /*********************************************************/
> /* Tony Tanzillo Design Automation Consulting */
> /* Programming & Customization for AutoCAD & Compatibles */
> /* ----------------------------------------------------- */
> /* tony.tanzillo@worldnet.att.net */
> /* http://ourworld.compuserve.com/homepages/tonyt */
> /*********************************************************/
0 Likes
Message 9 of 13

Anonymous
Not applicable
In that case, you are fresh out of luck.

You have gotten several responses from others here
showing how to do it using various external solutions,
but unfortunately, using nothing but R14 WITHOUT any
ARX or ActiveX extension, means that you have no
choice but SHELL.

AES wrote:
>
> Thanks Tony
>
> But would realy prefer not to use the "Shell" command
>
> Victor
>
> Tony Tanzillo wrote in message
> news:38BF0114.EEA04C73@worldnet.att.net...
> > Okay....
> >
> > (command "._SH" (strcat "MKDIR " dirname))
> >
> > You can also use a different PGP command that will not
> > display the DOS window.
> >
> > AES wrote:
> > >
> > > Must be in LISP or VLISP - cannot use 3rd party
> > >
> > > Thanks
> > > V Abela
> > >
> > > Dale Fugier wrote in message
> > > news:89msed$hhj16@adesknews2.autodesk.com...
> > > > Download DOSLib from www.mcneel.com. Unlike the (VL-MKDIR), DOSLib's
> > > > (DOS_MKDIR) function works in both R14 (LISP and A2K (VLISP). And
> hey,
> > > it's
> > > > free.
> > > >
> > > > --
> > > >
> > > > Dale Fugier
> > > > Robert McNeel & Associates
> > > > www.mcneel.com
> > > >
> > > >
> > > > "Frank Oquendo" wrote in message
> > > > news:89mrtv$hh725@adesknews2.autodesk.com...
> > > > > You can use VL-MKDIR: (vl-mkdir "c:\\test")
> > > > >
> > > > > Returns T if sucessful, nil otherwise
> > > > >
> > > > > --
> > > > > Get free software and more at http://www2.stonemedia.com/franko
> > > > >
> > > > >
> > > > > "AES" wrote in message
> > > > > news:89mr3t$him19@adesknews2.autodesk.com...
> > > > > > Which is the easiest or neatest way to create new folders or
> > > > directories -
> > > > > > Using LISP or VLISP - AutoCAD 14 & 2000
> > > > > >
> > > > > > (Preferably - without using "SH")
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > V Abela
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> >
> > --
> > /*********************************************************/
> > /* Tony Tanzillo Design Automation Consulting */
> > /* Programming & Customization for AutoCAD & Compatibles */
> > /* ----------------------------------------------------- */
> > /* tony.tanzillo@worldnet.att.net */
> > /* http://ourworld.compuserve.com/homepages/tonyt */
> > /*********************************************************/

--
/*********************************************************/
/* Tony Tanzillo Design Automation Consulting */
/* Programming & Customization for AutoCAD & Compatibles */
/* ----------------------------------------------------- */
/* tony.tanzillo@worldnet.att.net */
/* http://ourworld.compuserve.com/homepages/tonyt */
/*********************************************************/
0 Likes
Message 10 of 13

Anonymous
Not applicable
Before I discovered McNeel, I accomplished this by writing a simple VBA
program to create the new folder, and accessed it with AutoLISP using the
vbarun command. Before running the vbarun command, I used the open and
write-line functions to make a temporary file with the name of the new
directory, which was read by the VBA program. So it was totally under the
control of the LISP program, even though part of it was VBA.

If the solution you have to use for R14 isn't desirable for A2K, I would use
an "if" function to determine which version you are in, and act accordingly.

AES wrote in message <89mr3t$him19@adesknews2.autodesk.com>...
>Which is the easiest or neatest way to create new folders or directories -
>Using LISP or VLISP - AutoCAD 14 & 2000
0 Likes
Message 11 of 13

Anonymous
Not applicable
Out of interest, why can't you use 3rd parties?

Doslib was supplied on the cd so it could be thought of as only 'semi' 3rd
party if it's security your worried about.

Regards

Dave Fox

"AES" wrote in message
news:89mthi$hif19@adesknews2.autodesk.com...
> Must be in LISP or VLISP - cannot use 3rd party
>
> Thanks
> V Abela
>
>
>
> Dale Fugier wrote in message
> news:89msed$hhj16@adesknews2.autodesk.com...
> > Download DOSLib from www.mcneel.com. Unlike the (VL-MKDIR), DOSLib's
> > (DOS_MKDIR) function works in both R14 (LISP and A2K (VLISP). And hey,
> it's
> > free.
> >
> > --
> >
> > Dale Fugier
> > Robert McNeel & Associates
> > www.mcneel.com
> >
> >
> > "Frank Oquendo" wrote in message
> > news:89mrtv$hh725@adesknews2.autodesk.com...
> > > You can use VL-MKDIR: (vl-mkdir "c:\\test")
> > >
> > > Returns T if sucessful, nil otherwise
> > >
> > > --
> > > Get free software and more at http://www2.stonemedia.com/franko
> > >
> > >
> > > "AES" wrote in message
> > > news:89mr3t$him19@adesknews2.autodesk.com...
> > > > Which is the easiest or neatest way to create new folders or
> > directories -
> > > > Using LISP or VLISP - AutoCAD 14 & 2000
> > > >
> > > > (Preferably - without using "SH")
> > > >
> > > > Thanks
> > > >
> > > > V Abela
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes
Message 12 of 13

Anonymous
Not applicable
I think it's because he is a third party himself and doesn't want reliance
on somebody else.

--
Joshua Tapp ( josht@scm-ae.com )
Designer/Intern - Architecture Group - SCM Consultants, Inc. -
http://www.scm-ae.com - A part of Infrastructure Northwest Group -
http://www.ttinw.com - Division of Tetra Tech, Inc. - http://tetratech.com

david fox wrote in message
news:8a1fup$mbq17@adesknews2.autodesk.com...
>
0 Likes
Message 13 of 13

Anonymous
Not applicable
I've never understood the aversion to proven, tested third-party components.
Why reinvent the wheel? Worse yet, what if you're given the source and it
proves to be beyond your current skill set to maintain?

--
Visit me at: http://www2.stonemedia.com/franko

"Joshua Tapp" wrote in message
news:8a1gbk$mc121@adesknews2.autodesk.com...
> I think it's because he is a third party himself and doesn't want reliance
> on somebody else.
0 Likes