TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Re: Looking for a dos command From:John Posada <jposada01 -at- yahoo -dot- com> To:TECHWR-L <techwr-l -at- lists -dot- techwr-l -dot- com> Date:Tue, 15 Aug 2006 14:06:01 -0700 (PDT)
Geoff...thanks
one question. What is expected with:
Const LISTFILE = "G:\MyFiles\filelist.txt"
If it's what I think it is, we cannot create a list ahead of time for
what should be on the list that the CD should have. We only know that
we've dropped files in a directory structure and the CD build needs
to have them. With one product, it may be 12 files in three
directories, in another, it may be 60 files in seven directories. It
sounds strange, but we don't have a predefined list of files, we just
want the CD to have the same files as in out network directory
dropoff.
OTOH, If I misunderstand, let me know.
-- Geoff Lane <geoff -at- gjctech -dot- co -dot- uk> wrote:
> On Tuesday, August 15, 2006, Gene Kim-Eng wrote;
>
> > DIR /S /B /A-D
>
> > This will list all files found in a directory and all its
> > subdirectories in one list and exclude the directory
> > names.
> ---
>
> Unfortunately, that omits the file sizes.
>
> Here's a little vbScript-ette that should do what John needs. Just
> change the ROOTFOLDER AND LISTFILE constants as appropriate, save
> the
> file as (say) listfiles.vbs, and run with:
>
> wscript listfiles.vbs
>
> Change the INCLUDEPATH constant to False if you don't want to
> include the full path to each file.
>
> ------------8<------------------
> Const ROOTFOLDER = "G:\MyFiles"
> Const LISTFILE = "G:\MyFiles\filelist.txt"
> Const INCLUDEPATH = True
>
>
> Sub ParseFolder(objFolder, iLevel)
> Dim objFile, strPath, strLine
> strPath = objFolder.Path
> bFound = False
> For Each objFile In objFolder.Files
> If INCLUDEPATH Then
> strLine = strPath & "\"
>
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 archive -at- infoinfocus -dot- com -dot-