SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FileDir.exe

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FileDir.exe
Author Message
~Joe



Joined: 18 Dec 2003
Posts: 42

Post FileDir.exe Reply with quote

I am using the FileDir command to generate a list of files over a year old.

When I pipe the output to a text file we only capture 266 lines of data. If we simply disply the results to the screen we see several hundred lines more of data.
C:\temp\24x7\FileDir.exe /N /F /A 365 /O /S C:\*.* > C:\temp\24x7\list.txt

I have tried redirecting the output to a different drive with the same results.

Your suggestions are appreciated.

~Joe

Wed Jun 16, 2004 1:24 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: FileDir.exe Reply with quote

Here what I think is happening. You run this with /S option (for recursive directory processing) and somehow only files from the main directory get written to the log, probably because FileDir calls itself recursively for subdirectories.

Try creating a batch file containing 1 line
C:\temp\24x7\FileDir.exe /N /F /A 365 /O /S C:\*.*

and then calling the batch with output redirection to a log file.

: I am using the FileDir command to generate a list of files over a year old.

: When I pipe the output to a text file we only capture 266 lines of data. If
: we simply disply the results to the screen we see several hundred lines
: more of data.
: C:\temp\24x7\FileDir.exe /N /F /A 365 /O /S C:\*.* > C:\temp\24x7\list.txt

: I have tried redirecting the output to a different drive with the same
: results.

: Your suggestions are appreciated.

: ~Joe

Wed Jun 16, 2004 4:06 pm View user's profile Send private message
~Joe



Joined: 18 Dec 2003
Posts: 42

Post Re: FileDir.exe Reply with quote

I get the same results with my test server and my production server.

~Joe
: Here what I think is happening. You run this with /S option (for recursive
: directory processing) and somehow only files from the main directory get
: written to the log, probably because FileDir calls itself recursively for
: subdirectories.

: Try creating a batch file containing 1 line
: C:\temp\24x7\FileDir.exe /N /F /A 365 /O /S C:\*.*

: and then calling the batch with output redirection to a log file.

Wed Jun 16, 2004 6:41 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: FileDir.exe Reply with quote

What version of FileDir are you running?

: I get the same results with my test server and my production server.

: ~Joe

Wed Jun 16, 2004 7:34 pm View user's profile Send private message
~Joe



Joined: 18 Dec 2003
Posts: 42

Post Re: FileDir.exe Reply with quote

Version 1.03

: What version of FileDir are you running?

Thu Jun 17, 2004 12:13 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: FileDir.exe Reply with quote

It works for me.

Check if you have any file with a broken name that causes the system stop writing to the output file.
I remember a while ago I found a file in the winnt/system32 whose name contained ASCII 0 character ( I guess some program failed then and created an invalid file name).

: Version 1.03

Thu Jun 17, 2004 1:38 pm View user's profile Send private message
~Joe



Joined: 18 Dec 2003
Posts: 42

Post Re: FileDir.exe Reply with quote

I decided to use the windows resource kit forfiles.exe. I had to add an additional line of code to my 24x7 scipt to skip directoies. Other then that it seems to be fine.

~Joe

: It works for me.

: Check if you have any file with a broken name that causes the system stop
: writing to the output file.
: I remember a while ago I found a file in the winnt/system32 whose name
: contained ASCII 0 character ( I guess some program failed then and created
: an invalid file name).

Thu Jun 17, 2004 5:06 pm View user's profile Send private message
Lamar Morris



Joined: 30 Jul 2004
Posts: 1

Post Re: FileDir.exe Reply with quote

: It works for me.

: Check if you have any file with a broken name that causes the system stop
: writing to the output file.
: I remember a while ago I found a file in the winnt/system32 whose name
: contained ASCII 0 character ( I guess some program failed then and created
: an invalid file name).

If you use >> instead of > you won't overwrite your txt file.

Lamar

Fri Jul 30, 2004 9:39 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.