btw - there is a set of methods available that will combine paths and filenames - part of the System.IO namespace
they work like this:
That first Dim gets the path from a web.config file - you could just as easily hardwire that but if you are going to run this app elsewhere you need a way to make that more "variable"Code:Dim strReportFolder As String = System.Web.Configuration.WebConfigurationManager.AppSettings("reportfolder") Dim strStagingFolder As String = Path.Combine(strReportFolder, "staging") Dim strBusyFile As String = Path.Combine(strStagingFolder, "Busy.txt")
Code:<appSettings> <add key="reportfolder" value="D:\ACS Desktop\AWC\reporting"/>




Reply With Quote
