When I execute the command
gcloud compute copy-files \"C:\\Users\\fName lName\\Desktop\\testtext.txt\" instancename:test.txt --zone europe-west1-a
For example, to copy a remote directory to your local host, run:
gcloud compute copy-files \
my-instance:~/remote-dir \
~/local-dir \
--zone us-central1-a
In the above example, “/remote-dir” from “my-instance” is copied into the “/local-dir” directory. Conversely, files from your local computer can be copied to a virtual machine:
gcloud compute copy-files \
~/my-local-file-1 \
~/my-local-file-2 \
my-instance:~/remote-destination \
--zone us-central1-a
Here's a real live example for you:
gcloud compute copy-files \
instance-4:~/ \
~/Desktop/project/scripts/step/folder/* \
--zone asia-east1-a \
--project 911911911911911 \
gcloud compute copy-files \
~/Desktop/project/scripts/step/folder/* \
instance-3:~/ \
--zone asia-east1-a \
--project 911911911911911 \