Winscripter
  WSH
  Forums
  Downloads
  Books
  Links
  Amazon




Login
Register

© winscripter.com
1998-2004







WSH Forum

Author Thread: check if file exists with actual date in name - How?
dussy
check if file exists with actual date in name - How?
Posted: Friday, March 30, 2007 9:33 AM (PST)
Hello Friends! Im completly new with WSH and i have a problem iam not able to solve. so I hope some of you cracks are able to help me a step forward. I want to search if a file is there in an folder wich has the actual Date in his name, and than proceed on. I wrote this script but it wont work, hope some one can help me and show me what the problem is, or can give me a solution: ---------------- wetterfile = "d:\stationen\pool\000_news\Redaktion\wetter\wetterbericht_"& date &".mp3" set fs = CreateObject("Scripting.FileSystemObject") if fs.fileExists( wetterfile ) then msgbox("Wetterbericht found "& wetterfile) else msgbox("Wetterbericht not found "& wetterfile) end if --------------- Thank you for any help in this matter Andy




WSH and ADSI Administrative Scripting


Winscripter   |  WSH   |  Forums   |  Downloads   |  Books   |  Links   |  Amazon