Greetings all, new to this, and to vbscripting, so hopefully you can forgive my dumb questions.
I've been trying to put together a vbscript that will search for multiple folders in a directory, but I need to do it from a text file. The text file would contain the names of the folders I want to look for. For example:
010108
010208
010308
I want the script to open the text file, read the first line, string the directory back into the code, and search for the folder, which would have a directory path of C:\Program Files\Me\
So the script would be searching for C:\Program Files\Me\010108
Once it finds it, it then goes back to the code, looks at the second line, and searches for the next folder, and so on.
If it doesn't find a folder, it creates a text file that tells me which ones it didn't find.
I can find folders, open text, write to text, but can't get it to open the text, read the first line, incorporate it back into the code, and look for the folder. Hopefully I have explained myself ok here. Appreciate any help with this!
Steve
I've been trying to put together a vbscript that will search for multiple folders in a directory, but I need to do it from a text file. The text file would contain the names of the folders I want to look for. For example:
010108
010208
010308
I want the script to open the text file, read the first line, string the directory back into the code, and search for the folder, which would have a directory path of C:\Program Files\Me\
So the script would be searching for C:\Program Files\Me\010108
Once it finds it, it then goes back to the code, looks at the second line, and searches for the next folder, and so on.
If it doesn't find a folder, it creates a text file that tells me which ones it didn't find.
I can find folders, open text, write to text, but can't get it to open the text, read the first line, incorporate it back into the code, and look for the folder. Hopefully I have explained myself ok here. Appreciate any help with this!
Steve