[Solved] Create a timestamp folder with today’s date and time and copy some folder to it
Here is something you can try: @echo off rem Create datestamp: set “datestamp=%date:~4,-8%_%date:~7,-5%_%date:~12,2%” rem Request for me, if you are not using `dd/mm/yy` format, to provide another script for your occassion. rem Create timestamp: set “timestamp=%time:~0,2%_%time:~3,2%” rem Create folder: md %datestamp%_%timestamp% xcopy /E “C:/Program Files (x86)/Jenkins/workspace/jenkins Pipeline/application/bin/Debug/netcoreapp2.1/os/publish” “%datestamp%_%timestamp%” Hope this helps! 0 solved Create a … Read more