Forum Discussion
tristaanogre
Esteemed Contributor
You could do something like this:
var dateString = aqConvert.DateTimeToFormatStr(aqDateTime.Now(), '%m%d%Y%H%M') Log.SaveResultsAs("C:\\TestLogs\\Log" + dateString + "\\Log.xml", lsXML)
kcoffrin
7 years agoContributor
Thanks. Placing the variable creation and log.saveresultas inside of my function does not provide a sub folder creation. Placing the variable outside of the function and then the log.saveresultas outside as well, produces a sub folder entitled "Log' + dateString + '
- tristaanogre7 years agoEsteemed Contributor
I'm not sure I understand. The placement of the variable declaration and usage should have nothing to do without how it works. Is it possible to post your whole function?
- kcoffrin7 years agoContributor
Figured it out.
Placed: var dateString = aqConvert.DateTimeToFormatStr(aqDateTime.Now(), '%m%d%Y%H%M')
Updated: Log.SaveResultsAs("C:\\TestLogs\\Log" + dateString + "\\Log.xml", lsXML)
Related Content
- 9 years agom_essaid
- 8 years agoMulgraveTester
- 11 years agoArmandsBruns
- 8 years agoDonN