/build/static/layout/Breadcrumb_cap_w.png

VB Script to Search folder

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

Answers (6)

Posted by: anonymous_9363 13 years ago
Red Belt
0
I'm *really* sorry but, if you're going to lead with your chin...

http://www.lmgtfy.com/?q=vbscript+find+modified
Posted by: SunGard_JH 13 years ago
Senior Yellow Belt
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
Posted by: anonymous_9363 13 years ago
Red Belt
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.
Posted by: LikeToCode 13 years ago
Senior Yellow Belt
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]
Posted by: SunGard_JH 13 years ago
Senior Yellow Belt
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
Posted by: SunGard_JH 13 years ago
Senior Yellow Belt
0
Ah Cheers liketocode, i can go through some of these and hopefully manage to make sense of it :)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ