Level 35 Level 37
Level 36

PowerShell Files & Folders: Examples

6 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Copy-Item c:\scripts\test.txt c:\test
a command that copies the file Test.txt from the C:\Scripts folder to the C:\Test folder: _______
Copy-Item c:\scripts\* c:\test
Want to copy all the items in C:\Scripts (including subfolders) to C:\Test? Then simply use a wildcard character, like so: _______
Copy-Item c:\scripts\*.txt c:\test
this command copies only the .txt files in C:\Scripts to C:\Test: _______
Copy-Item c:\scripts c:\test -recurse
this command puts a copy of the folder C:\Scripts inside the folder C:\Test; in other words, the copied information will be copied to a folder named C:\Test\Scripts : _______
New-Item c:\scripts\Windows PowerShell -type directory
to create a new directory named Windows PowerShell within the C:\Scripts folder: _______
Rename-Item c:\scripts\test.txt new_name.txt
this command renames the file C:\Scripts\Test.txt to C:\Scripts\New_Name.txt : _______