-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMD CLI
56 lines (39 loc) · 1.18 KB
/
CMD CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Directorys:
....................
Show directory and hidden files:
ls -la
List Drives:
wmic logicaldisk get deviceid, volumename, description
Change Drive location:
"Mapped drive Letter":
Folder Operations location:
CD "Folder location"
Change to parent directory:
CD ..
Display only folders:
DIR /A:D
Display only files:
DIR /A:-D
Display hidden files and folders:
DIR /A:H
Search for file ending in
dir /s *."extension"
dir “filename.doc” /s /p (Search computer for specific filename)
dir “filename”* /s /p (Search computer for specific filename that starts with filename)
dir /b /s *.”file extension” (list all extensions that start with the specific extention)
dir /b /s read *.” file extension” (list all files that start with with read with specified extension.
dir /b /s “ready” *.* (List all files beginning with ready and any file extension)
File/Folder Operations:
....................
Move a file to a new folder:
MOVE "Old Path""File1" "New Path"
Copy a file to a new folder:
COPY "File" "Destination"
Delete a file:
DEL "File"
Rename a file:
REN "Old Filename" "New Filename"
Create folder:
MD "Folder Name"
Delete a folder:
RD "Folder Name"