Re: Looking for a dos command

Subject: Re: Looking for a dos command
From: "Bryan Sherman" <bsherm -at- gmail -dot- com>
To: "John Posada" <jposada01 -at- yahoo -dot- com>
Date: Tue, 15 Aug 2006 14:15:48 -0400

That's a tough one.

/s gets you all sudirectories, but a lot of other junk.
/b gets rid of everything BUT the name of the file (including the DOS
size) but also includes the full path.
/a-d picks only files that are not directories.

If you can get around the DOS size (embed version info in filename)
you could use:
dir /s/b/a-d >list.txt

If you need the Size
dir /s/a-d >list.txt

then post-process it in Excel. Not brainless, since there are headings
that will muck things up whether you go fixed-width or delimited.

You could use some fancy XL macro that imports fixed width, deletes
rows that do not start with a date, then remove all but the size and
filename columns.

Good Luck, I would be curious if a simpler solution came up.

Bryan

On 8/15/06, John Posada <jposada01 -at- yahoo -dot- com> wrote:

Hi, guys...I'm working on a small project that would allow us to
check that the documentation files we give to release engineering to
include on the CD made it into each build.

I'd like to create a log of every file that we submit and compare it
against their build. To do this, I need to pipe out to a file a
listing of each file name and its DOS file size. The kicker is that I
need to launch the command against a directory, have it crawl the
directory and it's subdirectories, yet pipe it to a list that simply
lists the files as if it was in one directory...I don't want to
include the names of the subdirectories.

I've been away from DOS for too long...anyone point me in the right direction?

John Posada
Senior Technical Writer

"I think the problem, to be quite honest with you, is that you've never actually known what the question is."
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

WebWorks ePublisher Pro for Word features support for every major Help
format plus PDF, HTML and more. Flexible, precise, and efficient content
delivery. Try it today! http://www.webworks.com/techwr-l

Easily create HTML or Microsoft Word content and convert to any popular Help file format or printed documentation. Learn more at http://www.DocToHelp.com/TechwrlList

---
You are currently subscribed to TECHWR-L as bsherm -at- gmail -dot- com -dot-
To unsubscribe send a blank email to
techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit http://lists.techwr-l.com/mailman/options/techwr-l/bsherm%40gmail.com


To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to lisa -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/techwhirl/ for more resources and info.




--
"If you're not part of the solution, you're part of the precipitate."
- Steven Wright
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

WebWorks ePublisher Pro for Word features support for every major Help format plus PDF, HTML and more. Flexible, precise, and efficient content delivery. Try it today! http://www.webworks.com/techwr-l

Easily create HTML or Microsoft Word content and convert to any popular Help file format or printed documentation. Learn more at http://www.DocToHelp.com/TechwrlList

---
You are currently subscribed to TECHWR-L as archive -at- infoinfocus -dot- com -dot-
To unsubscribe send a blank email to techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit http://lists.techwr-l.com/mailman/options/techwr-l/archive%40infoinfocus.com


To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to lisa -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/techwhirl/ for more resources and info.


References:
Looking for a dos command: From: John Posada

Previous by Author: Re: The Tech in Tech Writer
Next by Author: Late Friday Fodder
Previous by Thread: Re: Looking for a dos command
Next by Thread: Re: Looking for a dos command


What this post helpful? Share it with friends and colleagues:


Sponsored Ads