$root_path = $PSScriptRoot $src_path = $root_path + "\WS.xml" $dest_dir = $root_path + "\..\..\..\..\Project.FLY.Weight\FLY.Weight.UI.Server\bin\Debug\Gage1" $dest_path = $dest_dir + "\WS.xml" if(-not (Test-Path $dest_dir)) { echo $dest_dir mkdir $dest_dir } echo WS.xml cp $src_path $dest_path echo Ƴɹ pause