Hurco-AD10 run a scheduled task to rename the Hurco and Milltronics UPS Worldship files using PowerShell.
~~~~~~~~~~~~~~~~~~~
$filePath = "\\hurco.com\share\public\Daily UPS Charges\UPS_CSV_Export.csv";
$directory = [System.IO.Path]::GetDirectoryName($filePath);
$strippedFileName = [System.IO.Path]::GetFileNameWithoutExtension($filePath);
$extension = [System.IO.Path]::GetExtension($filePath);
$newFileName = $strippedFileName + "_" + [DateTime]::Now.ToString("yyyy-MM-dd") + $extension;
$newFilePath = [System.IO.Path]::Combine($directory, $newFileName);
Move-Item -LiteralPath $filePath -Destination $newFilePath;