#125027 - 2004-08-16 11:04 AM
Seach machines hardrives for a file between 2800kb and 2900kb
|
Peter Fry
Getting the hang of it
Registered: 2001-07-23
Posts: 95
Loc: Bristol UK
|
hi
is it possible to do this? i can't seem to even get started on this one....
i need to search a PCs local drives for a file between these two sizes, damn management.........
Pete
|
Top
|
|
|
|
#125031 - 2004-08-16 11:58 AM
Re: Seach machines hardrives for a file between 2800kb and 2900kb
|
Peter Fry
Getting the hang of it
Registered: 2001-07-23
Posts: 95
Loc: Bristol UK
|
thx this is working great
can i get the output to put the size of the file in as well?
any ideas?
Edited by Peter Fry (2004-08-16 12:09 PM)
|
Top
|
|
|
|
#125034 - 2004-08-16 12:11 PM
Re: Seach machines hardrives for a file between 2800kb and 2900kb
|
Peter Fry
Getting the hang of it
Registered: 2001-07-23
Posts: 95
Loc: Bristol UK
|
you're a star
working with it now
any idea how to get the file size to output on the same line as the file name?
Pete
|
Top
|
|
|
|
#125036 - 2004-08-16 12:14 PM
Re: Seach machines hardrives for a file between 2800kb and 2900kb
|
Peter Fry
Getting the hang of it
Registered: 2001-07-23
Posts: 95
Loc: Bristol UK
|
well i have to highlight the text to be able to read it when you put it on the black background, not complaining as you're writing some good code (far better than i can do)
|
Top
|
|
|
|
#125040 - 2004-08-16 12:34 PM
Re: Seach machines hardrives for a file between 2800kb and 2900kb
|
Peter Fry
Getting the hang of it
Registered: 2001-07-23
Posts: 95
Loc: Bristol UK
|
yep much better can read now
any ideas on the file size showing?
|
Top
|
|
|
|
#125042 - 2004-08-16 12:51 PM
Re: Seach machines hardrives for a file between 2800kb and 2900kb
|
Peter Fry
Getting the hang of it
Registered: 2001-07-23
Posts: 95
Loc: Bristol UK
|
yes please something like c:\temp\test.doc 2850
or something simular
just so i can do some easier checking
|
Top
|
|
|
|
#125045 - 2004-08-16 01:28 PM
Re: Seach machines hardrives for a file between 2800kb and 2900kb
|
Peter Fry
Getting the hang of it
Registered: 2001-07-23
Posts: 95
Loc: Bristol UK
|
well what i want is this i'll try and make it as easy as possible
given a list of machines (prolly around 300) search there local harddrives for a file that is size 2546176 in size (but as some people have edited this file i wanted to capture the ones that were greater than this up to say around 2800000) list the files that it finds with the size so i see c:\test.doc 2546176 c:\temp\test.doc 2734000
what i'm going to need but i think i can do this is get the following output machine=testpc c:\test.doc 2546176 c:\temp\test.doc 2734000 ----------------- machine=testpc2 ----------------- machine=testpc3 ----------------- machine=testpc5 c:\test.doc 2546176 c:\temp\test.doc 2734000
so i can see which machines have the file size and which ones don't
does that make sense?
basically a very sensitive file from HR has been leaked out to the network and the management are asking me to see if i can locate any copies on peoples harddrives
people have renamed this file and some might have changed the size buy adding a few extra characters
does this make sense now?
|
Top
|
|
|
|
#125046 - 2004-08-16 02:21 PM
Re: Seach machines hardrives for a file between 2800kb and 2900kb
|
Peter Fry
Getting the hang of it
Registered: 2001-07-23
Posts: 95
Loc: Bristol UK
|
one thing when i run this on a large drive i get Stack overflow exception. The common cause for this type of exception is an endless recursive loop. Please check your script(s) for endless loops. is there anyway to stop this?
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 248 anonymous users online.
|
|
|