vb.net - Searching file based on pattern -


struggling write code find file based on pattern

name of file: dailyload_yyyymmddhhmmgifkm.csv (dailyload , time stamp, set of 5 characters , extension)

so daily need match if receive above file in our source directory. struggling write code comparison

file name in database: dailyload_yyyymmddhhmmgifkm.csv file name received in source directory: dailyload_201307231010gifkm.csv 

we need check time stamp in file name of of today files other day might exist in same folder

can please help?

regards

try this:

dim dir new io.directoryinfo("c:\docs\parentdirectory") dim iofileinfo = dir.getfiles("dailyload_" & now.tostring("yyyymmdd") & "*gifkm.csv") 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -