Navigate to the parent directory of the current working directory
CD .\new_folder
Navigate to the folderย new_folderย located in the current working directory
CD /D d:\videos\
Change the current drive to D:\ and access the folderย videosย on it.
DIR
Display files and folders in the current directory
DIR /A c:\apps\
Display files and folders in the directoryย c:\apps\
DIR /A:D
Display only folders (D:ย directories)
DIR /A:-D
Display only files (D:ย directories;ย -:ย not)
DIR /A:H
Display hidden files and folders
DIR /O
Display files and folders sorted alphabetically
DIR /O:S
Display files and folders sorted by file size from smallest to largest
DIR /O:-S
Display files and folders sorted by file size from largest to smallest
DIR /B
Display only the names of files and folders in the current working directory
SORT
Take input from a source file/pipeline, sort its contents alphabetically (default: A to Z; in reverse: Z to A), and display the output
SORT "C:\music\playlist.m3u"
Sort the contents ofย C:\music\playlist.m3uย line by line
DIR /B | SORT /R /O ZtoA.txt
List all file and folder names in the current working directory, sort them in reverse alphabetical order, and save the sorted output to a fileย ZtoA.txt:
MOVE
Move a file or files
MOVE c:\f1\text.txt c:\f2
Move a fileย text.txtย from one folderย c:\f1ย to another folderย c:\f2
MD new_folderMAKEDIR new_folder
Create a new folder calledย new_folderย in the current directory
RD new_folderRMDIR new_folder
Delete the folder calledย new_folderย in the current directory
TREE
Show the directory structure of a disk/folder
TREE "C:\Program Files"
Show the directory structure of the folder โProgram Filesโ on the disk C:|
TREE C:\ /F
Display the names of the files in each folder in the directory structure of the C:\ drive
ATTRIB
Display/set the attributes of the files in the current directory
ATTRIB +H +S +R myItem
Hide a file/folderย myItem
ATTRIB -H -S -R myItem
Unhide a file/folderย myItem
Upload content remotely
If you have a netcar shell, do the following on the victimโs machine: