Archived from groups: microsoft.public.windowsxp.general (More info?)
Hello to all,
I need help with the following please.
[OS = XP Pro]
I want to print to file, a list of files in a specific directory that
contain a certain string. This listing must also include the date of said
file.
I'm able to create the list of files with FINDSTR /M
[[drive:][path]filename]. This returns all the fiile names which meet the
criteria but FINDSTR does not return the date of the file, which I also need.
I thought I may be able to use the FOR and or DIR commands in conjunction
with FINDSTR and pipe this to a text file. I've been reading the help file on
FOR but it is not clear to me how to use the results from FINDSTR as an input
variable.
Any help in setting me on the correct path to solving this is greatly
appreciated.
Archived from groups: microsoft.public.windowsxp.general (More info?)
"Hal" <Hal@discussions.microsoft.com> wrote in message
news4D6BEDD-ED63-4388-A95D-BE63CA820011@microsoft.com...
> Hello to all,
>
> I need help with the following please.
>
> [OS = XP Pro]
>
> I want to print to file, a list of files in a specific directory that
> contain a certain string. This listing must also include the date of said
> file.
>
> I'm able to create the list of files with FINDSTR /M
> [[drive:][path]filename]. This returns all the fiile names which meet the
> criteria but FINDSTR does not return the date of the file, which I also
need.
>
> I thought I may be able to use the FOR and or DIR commands in conjunction
> with FINDSTR and pipe this to a text file. I've been reading the help file
on
> FOR but it is not clear to me how to use the results from FINDSTR as an
input
> variable.
>
> Any help in setting me on the correct path to solving this is greatly
> appreciated.
>
> Regards,
>
> Hal
> Michigan, USA
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.