squirleegirl
Programmer
Greetings! I'm a novice at VB, so be patient with me =-)
I've got a program that searches for a file called flag.txt. This file can be in any folder. If this file(s)is found, then the program gathers the information in the files and sends the info out in an email.
Currently, I've got the file structure partially hard-coded and the rest coming from a value I've pulled from a database (looping through). Here is my code:
fso.FileExists("\\server\share\folder\" & rst("var") & "\flag.txt")
I want to change this so that it will search every file, not just those with a value from the database (this is because some students have found a way to create fake logins to take the tests and it doesn't get recorded under their name if they fail =-)
Since every student has a folder, I used the values of the database to complete the file name; however, I don't know how to complete it for those names not in the database.
Any suggestions?
Thanks in advance,
Squirleegirl
I've got a program that searches for a file called flag.txt. This file can be in any folder. If this file(s)is found, then the program gathers the information in the files and sends the info out in an email.
Currently, I've got the file structure partially hard-coded and the rest coming from a value I've pulled from a database (looping through). Here is my code:
fso.FileExists("\\server\share\folder\" & rst("var") & "\flag.txt")
I want to change this so that it will search every file, not just those with a value from the database (this is because some students have found a way to create fake logins to take the tests and it doesn't get recorded under their name if they fail =-)
Since every student has a folder, I used the values of the database to complete the file name; however, I don't know how to complete it for those names not in the database.
Any suggestions?
Thanks in advance,
Squirleegirl