Dear Imaginary Audience,
This one depleted my life force by about 37 mins, so I am figuring it might help some of you others, even though it is simple to the point of trivial.
I have a remote computer called BRUCE:
There is a file called YouLittleRipper.txt contained in the following Path:
C:\Program Files\Microsoft\Mammoth App Folder
To copy YouLittleRipper.txt from another computer NARELLE in Powershell do the following:
– Start Powershell On Narelle
$RipperPath = "\\BRUCE" + "\" + "C$" + "\"Program Files\Microsoft\Mammoth App Folder" + "\"
$Source = $RipperPath + "YouLittleRipper.txt"
$Target = $RipperPath + "OnyaGranny.txt"
copy-item "$Source" "$Target"
The file “OnyaGranny.txt” will now exist on BRUCE in ‘Mammoth App Folder”.
The secret ingredient is to put the quotation marks around the whole path after it has been constructed in the variable $Source.
You owe me 37 mins. Give us it.
Tags: Imaginary Friends