got it working. i changed myfolder rather than c:\test and it failed now changed c:\test and it works.

question. i cant program vb or most things. can i make this program date selective.
when running it to open all text files in folder it locks the computer as there are over a 100 files. can i be date specific.

Explanation :
In VB (and VBS), you use the Right, Left and Mid functions to extract sub-strings of specific lengths from specific positions in a string.
So, what I basically do is; I check the last 4 characters of the file-path with Right(MyFile.Path,4). If it matches with ".txt", I open the file.

Your question was to open 0310*.txt.
How I modified the code is : I kept the previous check for txt extension + I added one more condition, where I check if the first 4 characters of the file-name (NOT file-path) is 0310.

you are so clever. that works perfectly. thank you. i wish i could program vbs.
I am very greatful for your assistance. it has simplified a problem that was working on through dos batch files but couldnt get them working.