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
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)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
I'm *really* sorry but, if you're going to lead with your chin...
http://www.lmgtfy.com/?q=vbscript+find+modified
http://www.lmgtfy.com/?q=vbscript+find+modified
Posted by:
SunGard_JH
13 years ago
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
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
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.
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
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]
[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
Posted by:
SunGard_JH
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.