TechSpot

Windows XP creating a bat file

By timboellis2031
Feb 26, 2004
Topic Status:
Not open for further replies.
  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: 9,431

    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: 6,304   +52 Staff Member

    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.


Add New 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.