Quantcast
Channel: Tech Support Guy
Viewing all articles
Browse latest Browse all 29110

PowerShell copy file (beginner)

$
0
0
Hello, I'm following through a PowerShell guide thing and I'm just copying a file.

Say I create a few folders within each other and a text file at the end, and I want to copy that text file from within the folders to the desktop.

It lives in

C:\Users\Baax\temp\Folder1\Folder2\TextFile.txt

I want to move it to

C:\Users\Baax\Desktop

Do I have to perform this operation from C:\Users\Baax and then use the respective paths?

So it would be


PS C:Users\Baax> cp temp/Folder1/Folder2/TextFile.txt desktop

just curious I guess, thanks.

Viewing all articles
Browse latest Browse all 29110

Trending Articles