I'm looking for a way to rename an XML file from another server.
I'm currently able to do this locally with the code below but now need to rename the file from a different server.
DECLARE @Rename NVARCHAR(2000)
SET @Rename = 'ren "D:\Example\ExampleFolderPath\' + @OriginalFileName + '"' + ' "RENAMED_FILE.xml"'
EXEC master..xp_cmdshell @Rename