Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I have never been to any technical site that shows concern just to anybody with problems...I look forward to also share in the future..."

Geography

Where in the world do Tek-Tips members come from?

VBscript Search files in directoryHelpful Member! 

JordyDB (Programmer)
24 Apr 12 10:45
Can someone help me with writing a script that runs at a specific hour and fills a table or a file with all founded files that match the search criteria.
guitarzan (Programmer)
24 Apr 12 10:57
You can use Task Scheduler to run a script at a specified schedule. Regarding the actual script, what have you tried so far and where are you stuck?
JordyDB (Programmer)
24 Apr 12 10:59
Nothing I don't know how to start, how can I search a directory and get the list of all founded files?
jges (TechnicalUser)
24 Apr 12 13:20
A good place to start is FAQ329-5515: Recursive Folder/File Search

The sample in the FAQ looks for files with the extension "bak" but we can help you modify it to your needs. When we all know what those are. smile
JordyDB (Programmer)
25 Apr 12 3:19
Okay thanks, so my needs:

Each night at 3 o'clock the script should run.
When it runs it has to search on a variable (wich comes out of a database) in all the files (content and name) of the C-drive.
The filter should be:
(Sample) OR (SampleID AND Staining) OR (SampleID AND Staining)
All the founded files should be putten in a table (or in case that doesn't work in a text file) with the attributes date modified, date created, Titel, Path, Owner, Type

So that's what the script has to do. Is it possible?
Helpful Member!  crackoo (Programmer)
27 Apr 12 21:12
Hi !
You can take a look at those links :

SearchFileByName.vbs

SearchFileByExt.vbs
 
JordyDB (Programmer)
30 Apr 12 3:28
Ok these scripts search in the filename but is there a possibility to search in the content?

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close