Monday, April 18, 2011

Windows Command Line - File and Folders commands

Change the command prompt path to a different location = cd

Create a directory called files at the root of the c:\ drive = md \files

Create a directory called new files at the root of the c:\ drive? = md \"new files"

Delete the directory data, which contains files, from the root of the c:\drive? = rd /s \data

View or modify the application that will open a specific file type? = ftype

View or change a file's attributes = attrib

Encrypt all the files in the current directory and change the directory attribute to E = cipher /e

Delete all files in the current directory with the .txt extension = del *.txt

Take ownership of a file named data.txt in the current directory = takeown /f data.txt


No comments: