F5F Stay Refreshed Software Operating Systems Analyzing the CMD commands

Analyzing the CMD commands

Analyzing the CMD commands

T
TheDark_YT
Junior Member
34
12-29-2023, 01:25 PM
#1
Good evening. I’m working through a VM Lab for my A+ certification course at home. I’m comfortable with most computer concepts but haven’t really focused on programming. The issue I’m facing is trying to grasp why certain files appear even when they’re not in the expected directory—like the “help” message that shows up in the CMD window. I get some ideas, such as using /s /h to reveal hidden files, and I know xcopy is used for copying files with options like /s, /h, etc. The command I’m trying to understand is copying from one folder to another while preserving hidden items. I’m not sure why the /s /e /y part is necessary or what each component means in other commands. I’m hoping to learn more from this community to better understand these concepts. Please let me know if anyone has encountered this before or can explain it clearly.
T
TheDark_YT
12-29-2023, 01:25 PM #1

Good evening. I’m working through a VM Lab for my A+ certification course at home. I’m comfortable with most computer concepts but haven’t really focused on programming. The issue I’m facing is trying to grasp why certain files appear even when they’re not in the expected directory—like the “help” message that shows up in the CMD window. I get some ideas, such as using /s /h to reveal hidden files, and I know xcopy is used for copying files with options like /s, /h, etc. The command I’m trying to understand is copying from one folder to another while preserving hidden items. I’m not sure why the /s /e /y part is necessary or what each component means in other commands. I’m hoping to learn more from this community to better understand these concepts. Please let me know if anyone has encountered this before or can explain it clearly.

P
Pistachy
Junior Member
13
12-29-2023, 07:54 PM
#2
These options are features for using xcopy with the command line. /s copies folders and subfolders, leaving out empty ones; /e includes any subfolder, even if it contains nothing, and will overwrite files without asking. /y lets you overwrite files automatically when prompted. The asterisk in commands acts as a wildcard, so this command copies everything from the specified path, including all folders and subfolders, overwriting anything in the destination silently. Using /s is unnecessary here since /e already handles empty directories, but it still copies them.
P
Pistachy
12-29-2023, 07:54 PM #2

These options are features for using xcopy with the command line. /s copies folders and subfolders, leaving out empty ones; /e includes any subfolder, even if it contains nothing, and will overwrite files without asking. /y lets you overwrite files automatically when prompted. The asterisk in commands acts as a wildcard, so this command copies everything from the specified path, including all folders and subfolders, overwriting anything in the destination silently. Using /s is unnecessary here since /e already handles empty directories, but it still copies them.

N
NastyBastrd
Member
186
12-29-2023, 11:58 PM
#3
Here is the information from the Microsoft documentation: https://docs.microsoft.com/en-us/windows...ands/xcopy
N
NastyBastrd
12-29-2023, 11:58 PM #3

Here is the information from the Microsoft documentation: https://docs.microsoft.com/en-us/windows...ands/xcopy

M
Maxavo91
Member
158
12-30-2023, 01:21 AM
#4
I noticed this during my search for solutions, though I value it. It helps me realize maybe I should reconsider my question. Thanks for your understanding—I’ll keep it in mind and explore further.
M
Maxavo91
12-30-2023, 01:21 AM #4

I noticed this during my search for solutions, though I value it. It helps me realize maybe I should reconsider my question. Thanks for your understanding—I’ll keep it in mind and explore further.

M
MojangNin
Junior Member
1
12-30-2023, 07:16 AM
#5
The reason is explained by each flag's specific role.
Each symbol corresponds to a particular function.
M
MojangNin
12-30-2023, 07:16 AM #5

The reason is explained by each flag's specific role.
Each symbol corresponds to a particular function.

R
ricby
Senior Member
681
12-31-2023, 11:51 PM
#6
Thank you for clarifying it more clearly than the website. Appreciate the link!
R
ricby
12-31-2023, 11:51 PM #6

Thank you for clarifying it more clearly than the website. Appreciate the link!