View Full Version : create a text file with the contents of a folder / directory
Dan Hess
December 5th 03, 01:32 AM
Under DOS it was easy to create a text file from the
contents to a directory with pipes. I can't find anything
that explains how to do the same thing with XP.
I want to create a text file that I can import into a
spreadsheet with the information that you see when
listing the contents of a folder using the 'details' view.
Thanks.
Brian K. Pearcy
December 5th 03, 01:33 AM
Hello Dan,
It can still be done, to some degree, under DOS. Do the following to =
accomplish this:
- Open a DOS prompt
- Type CD\ (to get to the root of C: )
- Type: DIR C:\ /N/O/A: > C:\DIR.TXT
Here's what you would end up with:
Volume in drive C is MAIN
Volume Serial Number is C0F2-13F7
Directory of C:\
07/06/2002 02:01 PM <DIR> Documents and Settings
08/19/2002 03:17 PM <DIR> My Music
07/06/2002 02:15 PM <DIR> Program Files
07/06/2002 03:14 PM <DIR> Recycled
07/06/2002 02:22 PM <DIR> System Volume =
Information
07/06/2002 01:56 PM <DIR> WINDOWS
07/06/2002 02:17 PM 0 AUTOEXEC.BAT
05/05/2003 01:44 AM 194 boot.ini
07/06/2002 02:17 PM 0 CONFIG.SYS
07/06/2002 02:17 PM 0 IO.SYS
07/06/2002 02:17 PM 0 MSDOS.SYS
10/26/2002 02:49 AM 47,580 NTDETECT.COM
10/26/2002 02:49 AM 233,632 ntldr
06/24/2003 05:53 AM 401,850,368 pagefile.sys
8 File(s) 402,231,774 bytes
6 Dir(s) 6,027,689,984 bytes free
Hope this helps,
--=20
Brian
Microsoft MVP - DTS
------------------------------
"Dan Hess" > wrote in message =
...
> Under DOS it was easy to create a text file from the=20
> contents to a directory with pipes. I can't find anything=20
> that explains how to do the same thing with XP.=20
>=20
> I want to create a text file that I can import into a=20
> spreadsheet with the information that you see when=20
> listing the contents of a folder using the 'details' view.
>=20
> Thanks.
johnf
December 5th 03, 01:33 AM
Download Printfolders -
http://ktk.ru/~camelot/nokken
johnf
> Hello Dan,
>
> It can still be done, to some degree, under DOS. Do the following to
> accomplish this:
>
> - Open a DOS prompt
> - Type CD\ (to get to the root of C: )
> - Type: DIR C:\ /N/O/A: > C:\DIR.TXT
>
> Here's what you would end up with:
>
> Volume in drive C is MAIN
> Volume Serial Number is C0F2-13F7
>
> Directory of C:\
>
> 07/06/2002 02:01 PM <DIR> Documents and Settings
> 08/19/2002 03:17 PM <DIR> My Music
> 07/06/2002 02:15 PM <DIR> Program Files
> 07/06/2002 03:14 PM <DIR> Recycled
> 07/06/2002 02:22 PM <DIR> System Volume
> Information
> 07/06/2002 01:56 PM <DIR> WINDOWS
> 07/06/2002 02:17 PM 0 AUTOEXEC.BAT
> 05/05/2003 01:44 AM 194 boot.ini
> 07/06/2002 02:17 PM 0 CONFIG.SYS
> 07/06/2002 02:17 PM 0 IO.SYS
> 07/06/2002 02:17 PM 0 MSDOS.SYS
> 10/26/2002 02:49 AM 47,580 NTDETECT.COM
> 10/26/2002 02:49 AM 233,632 ntldr
> 06/24/2003 05:53 AM 401,850,368 pagefile.sys
> 8 File(s) 402,231,774 bytes
> 6 Dir(s) 6,027,689,984 bytes free
>
> Hope this helps,
> --
> Brian
> Microsoft MVP - DTS
> ------------------------------
> "Dan Hess" > wrote in message
> ...
>> Under DOS it was easy to create a text file from the
>> contents to a directory with pipes. I can't find anything
>> that explains how to do the same thing with XP.
>>
>> I want to create a text file that I can import into a
>> spreadsheet with the information that you see when
>> listing the contents of a folder using the 'details' view.
>>
>> Thanks.
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.