Set-ExecutionPolicy Unrestricted
$filedate = "{0:yyyy-MM-dd-HH-mm-ss}" -f (Get-Date)
mkdir C:\test\backup\$filedate\ApiApp2
xcopy /y /e "C:\test\*iApp2" C:\test\backup\$filedate\ApiApp2
2023-10-19 12:48:10
Set-ExecutionPolicy Unrestricted
$filedate = "{0:yyyy-MM-dd-HH-mm-ss}" -f (Get-Date)
mkdir C:\test\backup\$filedate\ApiApp2
xcopy /y /e "C:\test\*iApp2" C:\test\backup\$filedate\ApiApp2