'Copying file to current directory

How can I copy a file and paste it into the current directory?

copy "C:\Users\G\file.txt"

And then into the cd.



Solution 1:[1]

C:\Users\MyUser> COPY "C:\Users\G\file.txt" .

will copy the file file.txt to the current directory (in the example to C:\Users\MyUser).
The dot at the end denotes the current directory.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1