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

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -