Hey guys,

I am looking for some help with getting a script put together.

I want to be able to search a folder and report back all the files that have been modified in the last x hours. I then want the script to write to the registry with the following informatino

File Name
Date Modified
User who modified it.


The guys at KACE said it was possible but when asked to show me how, they didn't.

please help.

Many Thanks

Jason
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
I'm *really* sorry but, if you're going to lead with your chin...

http://www.lmgtfy.com/?q=vbscript+find+modified
Answered 02/28/2011 by: VBScab
Red Belt

Please log in to comment
0
Thank you for this,

but a few things that, being the fact i dont know anything about VBScript, i dont know how to modify is;

1) thats just a stand alone file and i need "All files within this fold and subfolders"
2) output to registry

I have found quite a bit online that will do search a folder and delete files that are x old but i just dont understand them, this is why i came here to ask.

many Thanks
Answered 02/28/2011 by: SunGard_JH
Senior Yellow Belt

Please log in to comment
0
The thing is, most people here have their own jobs to do. There simply isn't the time to devote to requests like this. I'm more than happy to write you a script but it will cost you (or your company). PM me and I'll advise you of my daily and hourly rates.

What you don't know, you need to learn. Get hold of your samples, browse the VBScript section of DevGuru.com, play around.

Be aware of the biggest trap beginners fall into with programming: they always assume that everything will always work. If you've spent any time at all doing serious work with computers, you'll know that that's normally true but, when things go wrong, often there is zero contingency built in and things blow up in spectacular style. Make sure your code traps EVERY trappable error and you'll be on fairly safe ground.
Answered 02/28/2011 by: VBScab
Red Belt

Please log in to comment
0
Use the Miscrosoft Technet Script Repository. It has plethora of scripts and it should get you started.

[link]http://gallery.technet.microsoft.com/scriptcenter/site/search?f%5B0%5D.Type=SearchText&f%5B0%5D.Value=datelastmodified&f%5B1%5D.Type=ScriptLanguage&f%5B1%5D.Value=Visual%20Basic&f%5B1%5D.Text=Visual%20Basic[/link]
Answered 02/28/2011 by: LikeToCode
Senior Yellow Belt

Please log in to comment
0
I do agree with you VBScab, hense posting here as i do not have to time to learn how to do VBScript. It is not really part of my day job.

I'll just keep searching :S
Answered 02/28/2011 by: SunGard_JH
Senior Yellow Belt

Please log in to comment
0
Ah Cheers liketocode, i can go through some of these and hopefully manage to make sense of it :)
Answered 02/28/2011 by: SunGard_JH
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity