Robocopy and get Copied file name
问题 I'm using robocopy to only sync only newer file, but I also need to get the file name being copied. I've to further use copied file name to make a entry in a some other file. I wasn't able to found switch, which only displays copied file name, any powershell script of batch file will also be fine. 回答1: This function parses all the RoboCopy text output and outputs that as a nice object. Use it like this: $RoboCopyOutput = robocopy $source $destination /ROBOSWITCHES Parse-RoboCopyOutput