Windows XP creating a bat file

By timboellis2031
Feb 26, 2004
  1. I am running windows XP Home OEM and lookign to setup a bat file so that it will copy all of say C:\Documents and Settings\myprofile and send it to another hdd or a network shared drive, how do i do this
  2. Nodsu

    Nodsu TS Rookie Posts: 5,837

    Open notepad and type:
    @echo off
    xcopy /E /C /I /F /H /R /O /Y "c:\documents and settings\myprofile" \\my\destination

    Then save the file with a .bat or .cmd extension
  3. Rick

    Rick TechSpot Staff Posts: 4,573   +65

    That would work IF Windows allows you access to copy those files. It is very possible this may not work because certain files in your profile settings may be "locked".
Topic Status:
Not open for further replies.

Similar Topics

Create an account or login to comment

You need to be a member in order to leave a comment
TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...

Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.