Any idea what went wrong here, I am able to rename the file with a date string_100.xlsx but the second command to do a save as .csv is failing. The “_100” after the date string is necessary for me to trigger an upload.
If I remove “_100” the script works and saves the .xlsx to a .csv file.
$datestring = (Get-Date).ToString(“yyyyMMdd”)
dir ‘\Sun\D$\Works\ShellTRP\Test.xlsx’|Rename-Item -NewName Test_$datestring’_100’.xlsx
Please … When you post code, sample data, console output or error messages format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.