cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Copy hosts file from C drive to other Drive

Copy hosts file from C drive to other Drive

Introduction :
This article will helps you to copy host/system files from C drive to another Drive

Instructions :

Step 1 : Create a New Project
Step 2 : Add Execute Script/Batch file action with this command,
                xcopy /y /o /h /i "C:\Windows\System32\drivers\etc\hosts" "E:\FCSBACKUP"
Step 3 : Make sure the folder FCSBACKUP is available
Step 4: Build and run the project.
Step 5: Make sure the hosts files are copied to the expected location.

More Information:
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy

Labels (3)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Aug 22, 2023 12:16 AM
Updated by:
Contributors