[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More
Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
Dim objFSO, objFile, objFolder
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(Server.MapPath("/t/my_folder"))
For Each objFile in objFolder.Files
Response.Write objFile.Name & "<br>"
'so here you can put in your comparing logic against the file name (objFile.Nam) that contained today's date.
Set objFolder = Nothing
Set objFSO = Nothing
Open in new window
Dim fso, folder, files, x
fso = server.createObject("Scripting.FileSystemObject")
folder = fso.GetFolder("c:\inetpub\wwwroot\Incoming2\")
files = folder.Files
fso = Nothing
Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30205: End of statement expected.
Line 53: if year(objFile.DateLastModified) = year(now()) and month(objFile.DateLastModified) = month(now()) and day(objFile.DateLastModified) = day(now()) and lcase(right(objFile.Name, 4)) = ".txt" then
Line 55: Response.Write (objFile.Name) & "<br>"
Line 56: cnt = cnt + 1
Line 57: end if
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.