2 Win Command Line Tutorial
2 Win Command Line Tutorial
Line Tutorial
Overview
• Windows File System
• Create folders and files
• File Copy & Deletion
• Networks
• Search for information
• Create a batch file
Windows File System
Windows System file structure (Tree-
like)
Absolute and relative paths
• Absolute path
• a path is built starting from
the system root
• Relative path
• a path is built starting from
the current location,
• as it is relative to the current
present position location
Root directory
\Users
\Fxu
Change path using relative path
C: C:
\Fxu
23
C: C:
\Users \Users
Create a folder
\Public \Public
\workspace
24
Create a new text file C:
\Users
\Public
\workspace
hello
world my_first_file.txt
Show the content of the file: type
Show the content of the file
Show the content of the file: exe
command
File Copy & Deletion
29
Duplicate files
Copy a file to a different location
Copy a file to a new folder \
workspace2 without using cd
command
C: 1. create a folder
2. copy a file
.. parent folder
\Users
1. create a folder
2. copy a file
\Public
you are here
\workspace \workspace2
copy the whole folder to
/workspace3
C:
\Users
\Public
you are here
using wmic?