PDA

View Full Version : Any way to easily create a manifest?


23-Apr-2006, 06:43 AM
I am trying to do something which I think should be fairly simple. I just want to create an html listing of a set of files with their name, size, crc, version and date. I have a list of files which is a subset of a much bigger tree. Every time we rebuild, I want to recreate the listing to reflect the new information for that list of files. What I tried to do was create a snapshot with only the files I cared about and then compare that against the new tree. I touched all of the files in the snapshot to have a date that is very old. The comparison is then to do just newer files. This works, but the report also has the old version listed (which makes sense most of the time). Is there a way to suppress the printing of the old file and only list the new one so that instead of
dir1\test.txt 15 c385e96d 4/23/2006 1:29:45 am
15 ffffffff 1/1/1900 12:00:00 am
dir2\test.txt 15 c385e96d 4/23/2006 1:29:45 am
15 ffffffff 1/1/1900 12:00:00 am

it would just list
dir1\test.txt 15 c385e96d 4/23/2006 1:29:45 am
dir2\test.txt 15 c385e96d 4/23/2006 1:29:45 am

I can get closer to the desired behavior by comparing to an empty directory and using orphans but then I would need to pass every file in a filter and that would be pretty nasty since there wouldn't be an easy mask due to how the files are named and spread out.

I guess this just might not be the right tool to do what I want in this case, but thought I would throw this out there in case someone has a more eloquent solution.

23-Apr-2006, 03:57 PM
Ok, I finally figured it out so I am posting here should anyone else ever have the twisted desire to do the same thing. The trick to doing the snapshot compare to the filesystem is to disable all of the compare options within the comparison control. You then have to save your session and within the script, do a load session. At least, I couldn't figure out any way to disable the compare within the script any other way. This then results in the expected behavior of any files within the snapshot that are found in the filesystem being treated as matches and you can then do a folder report of matches only and get a very clean manifest.

If anyone knows how to disable the compare options within the script without loading a session, I would be happy to know that, but other than that I am good to go.

24-Apr-2006, 01:16 AM
And the final answer is to just put criteria with no params in the script file. I'm done talking to myself now. Hopefully someone else finds this useful in the future.