PowerShell - Backslash at end when using variables -


i´ve small problem didnt understand... want fire-up robocopy source/target information variable.

$source = $tdu2backup_path+$dir_array[$i]+$file_array[$i] $target = $tdu2unpacked_path+$dir_array[$i]+$file_array[$i] 

when print var. content write-host fine, that:

d:\spiele\tdu2community\euro\bnk\islands\ibiza\level\area-1\area-1-3\sector-1-3-4-2.bnk d:\spiele\tdu2community\backup\gas-station-xandernl\euro\bnk\islands\ibiza\level\area-1\area-1-3\sector-1-3-4-2.bnk 

but, if use var. robocopy (or xcopy or that), have backslash @ end

--------------------------------------------------------------------------- quelle : d:\spiele\tdu2community\euro\bnk\islands\ibiza\level\area-1\area-1-3\sector-1-3-4-2.bnk\  ziel : d:\spiele\tdu2community\backup\gas-station-by-xandernl\euro\bnk\islands\ibiza\level\area-1\area-1-3\sector-1-3-4-2.bnk\  dateien : * . *  optionen: * . * /dcopy:da /copy:dat /r:1000000 /w:30 

here screenshot:

variable output string , using in robocopy not same


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -