When you've worked with the Unix or DOS command lines, you get frustrated by the limitations of windowing interfaces. For example, how do you rename every file in a folder at once? In Windows you can't. In DOS, you use the ren command together with wildcard characters, as follows:
C:>ren ??acad06*.* ??acad07*.*
I did that today, renaming 28 chapter files of one of my AutoCAD books -- with one command, instead of renaming each of the 28 files, one at a time. By coincidence, Bob McNeel today also released an updated set of DOS-oriented LISP functions for AutoCAD, IntelliCAD, TurboCAD, and other programs that use LISP.
DOSLib is the name of the library that gives LISP functions similar to those in Windows and DOS. It's been tested on AutoCAD 2000 - 2007. For example:
dos_chkdsk - Returns drive space statistics.
dos_closeall - Closes all open AutoCAD drawing files.
dos_mkdir - Makes new directories.
dos_rename - Renames files.
Some functions are new, such as:
dos_arxlist - Returns a list of loaded ARX applications.
dos_extractpreview - Extracts the preview image from the active document.
dos_pathquotes - Adds or removes double-quote characters to a path string.
DOSLib is free; download here.
It can be a pain getting to a specific folder at the command line. Here's a shortcut:
1. In Windows Explorer, go to the folder.
2. In the Address box, select and copy the path.
3. In the Command Prompt window, enter the cd command, and then right-click. Windows pastes the path.
C:/> cd [right click] D:\Books\Using AutoCAD 2007 Basics - April 05
4. Press enter, and you're in the folder.