Directory date

  • Thread starter Thread starter dadiOH
  • Start date Start date
D

dadiOH

I've been unsuccessfully looking for a program that will recurse a folder
tree and create a list of the folders - folders only, no files - and the
creation date. Anyone know of such?
 
dadiOH said:
I've been unsuccessfully looking for a program that will recurse a folder
tree and create a list of the folders - folders only, no files - and the
creation date. Anyone know of such?
Well, on a UNIX box, I'd do:
$ find . -type d -exec ls -ldt {} \;

On a Windoze box, I'd install Cygwin, and then do the same thing. Hmm,
might vary the options to ls a bit.

Cheers,
Gary B-)
 
I've been unsuccessfully looking for a program that will recurse a folder
tree and create a list of the folders - folders only, no files - and the
creation date. Anyone know of such?

The dir command can do this if you do not find a program to handle it.


These are the switches for XP:

/A Displays files with specified attributes.
D Directories

/S Displays files in specified directory and all
subdirectories.

/T Controls which time field displayed or used for sorting
C Creation


from a prompt type: "dir /A:D /T:C /S > c:\dir.txt"

to create your list as file "C:\dir.txt"

A partial "dir.txt" from my machine:

Directory of C:\Archive (a main directory)

04/15/2004 02:51 AM <DIR> . (creation date)
04/15/2004 02:51 AM <DIR> ..
04/15/2004 02:52 AM <DIR> Agent200-652
04/15/2004 04:14 AM <DIR> RegSeeker135
04/15/2004 04:14 AM <DIR> SpywareBlaster
04/15/2004 04:14 AM <DIR> WsFtp
04/15/2004 04:15 AM <DIR> AntiVir-Win
04/15/2004 04:15 AM <DIR> Avant
04/15/2004 04:15 AM <DIR> GRC
04/15/2004 04:16 AM <DIR> pics
04/15/2004 04:20 AM <DIR> Kerio215
04/15/2004 04:20 AM <DIR> PSPad
04/15/2004 04:20 AM <DIR> Spybot
04/15/2004 04:21 AM <DIR> Ws_ftp508
04/15/2004 04:21 AM <DIR> Xenu
04/15/2004 06:26 AM <DIR> BitDefender
04/16/2004 06:01 AM <DIR> Thunderbird
04/16/2004 06:56 PM <DIR> HijackThis
04/17/2004 07:52 AM <DIR> WinPatrol
04/18/2004 07:57 AM <DIR> MSUpdates
05/04/2004 01:00 PM <DIR> DriveImageXP
05/14/2004 09:59 AM <DIR> ScriptDefender102
05/15/2004 08:38 AM <DIR> UnrarDll
05/15/2004 09:48 AM <DIR> TrueTypeFonts
05/18/2004 10:00 AM <DIR> CryptEdit
05/22/2004 08:30 AM <DIR> SM
05/28/2004 06:52 AM <DIR> Adaware
05/28/2004 07:22 AM <DIR> TurboNavigator147
06/11/2004 07:58 AM <DIR> AtlantisNova
06/14/2004 04:35 AM <DIR> AnalogX
06/23/2004 09:21 AM <DIR> Eraser57
0 File(s) 0 bytes

Directory of C:\Archive\Agent200-652 (recursed subdirectories)

04/15/2004 02:52 AM <DIR> . (creation time)
04/15/2004 02:52 AM <DIR> ..
0 File(s) 0 bytes

(etc...)

Directory of C:\Archive\RegSeeker135

04/15/2004 04:14 AM <DIR> .
04/15/2004 04:14 AM <DIR> ..
04/15/2004 04:14 AM <DIR> RegSeeker
0 File(s) 0 bytes

Directory of C:\Archive\RegSeeker135\RegSeeker

04/15/2004 04:14 AM <DIR> .
04/15/2004 04:14 AM <DIR> ..
04/15/2004 04:14 AM <DIR> Languages
04/15/2004 04:14 AM <DIR> Backup
0 File(s) 0 bytes

Directory of C:\Archive\RegSeeker135\RegSeeker\Languages

04/15/2004 04:14 AM <DIR> .
04/15/2004 04:14 AM <DIR> ..
0 File(s) 0 bytes

Directory of C:\Archive\RegSeeker135\RegSeeker\Backup

04/15/2004 04:14 AM <DIR> .
04/15/2004 04:14 AM <DIR> ..
0 File(s) 0 bytes

Directory of C:\Archive\SpywareBlaster

04/15/2004 04:14 AM <DIR> .
04/15/2004 04:14 AM <DIR> ..
0 File(s) 0 bytes

Directory of C:\Archive\WsFtp

04/15/2004 04:14 AM <DIR> .
04/15/2004 04:14 AM <DIR> ..
0 File(s) 0 bytes

Directory of C:\Archive\AntiVir-Win

04/15/2004 04:15 AM <DIR> .
04/15/2004 04:15 AM <DIR> ..
0 File(s) 0 bytes

Directory of C:\Archive\Avant

04/15/2004 04:15 AM <DIR> .
04/15/2004 04:15 AM <DIR> ..
0 File(s) 0 bytes

Directory of C:\Archive\GRC

04/15/2004 04:15 AM <DIR> .
04/15/2004 04:15 AM <DIR> ..
0 File(s) 0 bytes

Directory of C:\Archive\pics
 
I've been unsuccessfully looking for a program that will
recurse a folder tree and create a list of the folders -
folders only, no files - and the creation date. Anyone
know of such?

Will this fit the bill?

TreeCopy

http://www.rjlsoftware.com/software/utility/treecopy/default.s
html

Description:
"...allow you to select the "from directory" and "into
directory", and it will proceed to copy ONLY the directory
structure. The utility is bundled with functionality such as a
command line interface, calculate directories..."


--
RL
*******************************************
Unofficial Adaware Updater:
http://home.earthlink.net/
~ringomei/Unofficial_adaware_updater.html

Little (File) Backer Upper:
http://home.earthlink.net/~ringomei/page2.html
*******************************************
 
At
http://www.rjlsoftware.com/software/utility/



I've been unsuccessfully looking for a program that will
recurse a folder tree and create a list of the folders -
folders only, no files - and the creation date. Anyone
know of such?

Will this fit the bill?

TreeCopy

http://www.rjlsoftware.com/software/utility/treecopy/default.s
html

Description:
"...allow you to select the "from directory" and "into
directory", and it will proceed to copy ONLY the directory
structure. The utility is bundled with functionality such as a
command line interface, calculate directories..."


--
RL
*******************************************
Unofficial Adaware Updater:
http://home.earthlink.net/
~ringomei/Unofficial_adaware_updater.html

Little (File) Backer Upper:
http://home.earthlink.net/~ringomei/page2.html
*******************************************
 
R.L said:
Will this fit the bill?

TreeCopy

http://www.rjlsoftware.com/software/utility/treecopy/default.s
html

Description:
"...allow you to select the "from directory" and "into
directory", and it will proceed to copy ONLY the directory
structure. The utility is bundled with functionality such as a
command line interface, calculate directories..."

Not quite. It is a handy program and I use it from time to time. However,
as it should, it gives new dates to the new directory tree rather than
retaining the dates of those from which it copied. Thanks for the
suggestion though.

--
dadiOH
_____________________________

dadiOH's dandies v3.0...
....a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico
____________________________
 
REM said:
The dir command can do this if you do not find a program to handle
it.

Thanks. Looks like that's the way I'll have to go. My switches are a bit
different than yours but that's no problem. I can't figure a way to get a
recursive listing of directories though, is there one?

--
dadiOH
_____________________________

dadiOH's dandies v3.0...
....a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico
____________________________
 
Thanks. Looks like that's the way I'll have to go. My switches are a bit
different than yours but that's no problem. I can't figure a way to get a
recursive listing of directories though, is there one?

Yes, I'm sure there is. You can open a DOS window and type:

"dir /?"

to get a list of the available switches for your version of Windows.

"dir /? > c:\dir.text" (to write the info to a text file)

On XP Pro the switch is "/S"

"Displays files in a specified folder and in all subdirectories"

For all practical reasons, a file and a folder are the same thing. The
other switch limits the results to only folders, and the other switch
forces the creation time to be displayed.
 
dadiOH said:
Thanks. Looks like that's the way I'll have to go. My switches are a bit
different than yours but that's no problem. I can't figure a way to get a
recursive listing of directories though, is there one?

c:\winnt> dir /s /a:d (win2k)
note: it also lists . and ..., which might be annoying.
furthermore, as for the date, win2000 change it if you write something in
the dir. afaik dir doesnt list the creation date.
interesting idea, though. if there's nothing already, i see if i can write a
simple vbapp for that.
ciao, j.
 
On XP Pro the switch is "/S"

On mine too. Trouble is, it had no effect. Turns out that was because I
use special icons on many of my folders...change back to the system icon and
it works fine. Thanks.

--
dadiOH
_____________________________

dadiOH's dandies v3.0...
....a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico
____________________________
 
javalab said:
c:\winnt> dir /s /a:d (win2k)
note: it also lists . and ..., which might be annoying.
furthermore, as for the date, win2000 change it if you write
something in the dir. afaik dir doesnt list the creation date.
interesting idea, though. if there's nothing already, i see if i
can write a simple vbapp for that.

Sure hope you do. And if you do, would you let me know via email? My "Reply
to" address is correct.

In Win98 at least, dir /s /A:D /O:D spits out a list sorted by creation date
of the folder. In the case of the Program directory tree that date
corresponds to the installation date of the program which is what I'm after.

The DOS command is way better than nothing but the output is less than
great. A Windows app - VB, whatever - would sure be nice. Something that
lets you browse for a parent directory and with a few minimal
options...recurse, don't recurse, what to include (date, other attributes),
column order, output format (text, CSV, maybe html?). Something that makes
a nice neat report which is arranged so that information is easily found...

--
dadiOH
_____________________________

dadiOH's dandies v3.0...
....a help file of info about MP3s, recording from
LP/cassette and tips & tricks on this and that.
Get it at http://mysite.verizon.net/xico
____________________________
 
dadiOH said:
Sure hope you do. And if you do, would you let me know via email? My "Reply
to" address is correct.
ok

In Win98 at least, dir /s /A:D /O:D spits out a list sorted by creation date
of the folder. In the case of the Program directory tree that date
corresponds to the installation date of the program which is what I'm after.

The DOS command is way better than nothing but the output is less than
great. A Windows app - VB, whatever - would sure be nice. Something that
lets you browse for a parent directory and with a few minimal
options...recurse, don't recurse, what to include (date, other attributes),
column order, output format (text, CSV, maybe html?). Something that makes
a nice neat report which is arranged so that information is easily
found...

ok again, i'll keep that in mind.
just dont be breathless while waiting, it could take some time :)

seriously, i'm in the mud, anyway i'm already on it.

ciao, j.
 
dadiOH said:
I've been unsuccessfully looking for a program that will recurse a folder
tree and create a list of the folders - folders only, no files - and the
creation date. Anyone know of such?

FoldersReport by Nir Sofer, NirSoft
 
Back
Top