Ok, Here’s some powershell code to see if the backslashes get removed when bracketed by pre tags:
<#+---------------------------------------------------------+ | Move files listed in a file using RoboCopy while | | preserving the directory structure by appending the | | source path (minus the drive spec) to the destination | | path. | +---------------------------------------------------------+#> Clear-Host $source = Get-Content "G:\Test\111.txt" -Encoding UTF8 $destination = "G:\BEKDocs\Test" Foreach ($SrcPath in $source) { $file = Split-Path -Path $SrcPath -Leaf $path = Split-Path -Path $SrcPath -parent $PLen = $Path.Length -3 $PAdd = $Path.Substring(3,$PLen) $SavePath = Join-Path -Path $Destination -ChildPath $PAdd $robocopyOptions = @('/Move', '/copyall') $LogFile = @('/log+:G:\BEKDocs\Transfer\log.txt') $CmdLine = @($path, $SavePath, $file) + $robocopyOptions + $LogFile & 'robocopy.exe' $CmdLine } #End Foreach