The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Hurricane for AutoCAD
 Tips and Tricks
 Create LST files in Windows (.BAT)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Admin
Administrator



652 Posts

Posted - January 21 2004 :  9:27:10 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
I've just added an FAQ entry explaining how you can create automaticallyl generate a FileList using the Windows Command prompt (or in a BAT file), recursively supplying all filenames matching your pattern into a LST file.

This can be handy if you always want your FileLists to be up-to-date, or regenerate on a scheduled basis.

http://www.74mph.com/faq/FAQ00142.html

Regards,
Bill

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html

n/a
deleted

112 Posts

Posted - January 22 2004 :  09:17:50 AM  Show Profile  Reply with Quote
Bill,
I have been using this method to generate a file list. In fact, I have taken it one step further, I think, in that I created a shell command in the registry under the folder type which allows me to right click on a folder (in Explorer's folder view) and select this option to produce the file list. What I end up with, however, are the drawing names without the paths, which your post yesterday indicated was a problem. I tried issuing a command prompt from the folder this morning, and running the batch file directly (without the right click method) to see if that produced the needed drawing paths. ...Still didn't do so. Does your method, on your computer produce the path? If so, what may I be doing wrong?

(I have attached my batch file which produces the initial drawing list which I have been further processing (sorting) using UltraEdit, as posted yesterday. [I had to rename it to a TXT file in order to post: security and an executable file type (BAT), I presume.])

Thanks for your help, as always !!

Download Attachment: spn.txt
635 Bytes

Steve Bubendorf
Go to Top of Page

Admin
Administrator



652 Posts

Posted - January 22 2004 :  11:19:09 AM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hmmm... interesting..

If I try
dir *.dwg /oen /b /s > test.txt
at the CMD line, then I get a file list with paths...

AH! The difference is the use of the /S switch. I've tried it without and you only get the filenames without the path. I guess this is a limitation of the DIR command... to get the full path, you have to use the /s, but you will also get all contents of sub-directories listed.

Regards,
Bill

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

n/a
deleted

112 Posts

Posted - January 22 2004 :  12:59:04 PM  Show Profile  Reply with Quote
THANKS, BILL !! I think I can work with that. I'm sorry I did not check out the results using the /s switch before bothering you.

Steve Bubendorf
Go to Top of Page

Admin
Administrator



652 Posts

Posted - January 22 2004 :  2:50:13 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
No problemo!

Any time!

Bill

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.36 seconds. Snitz Forums 2000