Copy the folder structure correctly
This commit is contained in:
parent
5f2c12324c
commit
efafed4f37
|
@ -197,9 +197,9 @@ func CopyExportedVirtualMachine(expPath string, outputPath string, vhdDir string
|
|||
|
||||
var script = `
|
||||
param([string]$srcPath, [string]$dstPath, [string]$vhdDirName, [string]$vmDir)
|
||||
Copy-Item -Path $srcPath/$vhdDirName -Destination $dstPath -recurse
|
||||
Copy-Item -Path $srcPath/$vmDir -Destination $dstPath
|
||||
Copy-Item -Path $srcPath/$vmDir/*.xml -Destination $dstPath/$vmDir
|
||||
Move-Item -Path $srcPath/*.* -Destination $dstPath
|
||||
Move-Item -Path $srcPath/$vhdDirName -Destination $dstPath
|
||||
Move-Item -Path $srcPath/$vmDir -Destination $dstPath
|
||||
`
|
||||
|
||||
var ps powershell.PowerShellCmd
|
||||
|
|
Loading…
Reference in New Issue