cmdolcet
asked on
How to create a unique file each month
Right now I have an export file being saved with a unique barcode that is attached to the export file. I would like to know how I can add a unique month and year to the file but if I have multiple data collected in the same month I would append that data until a new month.
For Each export In pFile.Exports
If newDir = String.Empty Then
If export.addVariableExportUniqueVIN Then
exportFile = New FileInfo(newDir & "\" & export.ExportName & ScannedBarCode & export.ExportExtension)
Else
exportFile = New FileInfo(newDir & "\" & export.ExportName & export.ExportExtension)
End If
end if
next
ASKER
Shaun If I append to the Filename it will give me a "4543....." numerical value.
What I am looking for is the following any data collected in November would show the following in the filename_November2018.txt and all data collected in November would go under that file. In December it no file is created then it would show the following in a separate file filename_November2018.txt
What I am looking for is the following any data collected in November would show the following in the filename_November2018.txt and all data collected in November would go under that file. In December it no file is created then it would show the following in a separate file filename_November2018.txt
In December it no file is created then it would show the following in a separate file filename_November2018.txt
You meant to say filename_December2018.txt?
Post at least your complete method. Currently it raises more questions than asked.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Open in new window
or part of a GUID
Open in new window