0

I have a simple batch script that has one line of code like this:

TestComplete.exe /run "C:\Users\user\Documents\TestComplete 14 Projects\CalcTest\Calculator\Calculator.mds" /exportLog:"C:\TestLogs\<FolderName>\Log.html"

What I would like to do is where the FolderName is towards the end, populate it with Date/Timestamp in it's place

So it would look something like this:

TestComplete.exe /run "C:\Users\user\Documents\TestComplete 14 Projects\CalcTest\Calculator\Calculator.mds" /exportLog:"C:\TestLogs\Jun 09 2018 15:28:14\Log.html"

Batch scripting is new to me so I am not sure how to go about this.

Thanks

JD2775
  • 3,290
  • 6
  • 26
  • 42
  • A directory name like `Jun 09 2018 15:28:14` is impossible to achieve since there are forbidden characters! Besides that, this is the worst date format I know of, because you cannot sort after it at all; better would be to only use numeric values and start from the year, like `20180609_152814`, for example… – aschipfl Aug 11 '21 at 21:02

0 Answers0