MMM
Results 1 to 3 of 3

Thread: Xcopy batch backup in Window 7 64 bit

  1. #1
    Registered User
    Join Date
    Oct 2006
    Location
    Kirghudu, Cowjackingstan
    Posts
    462

    Question Xcopy batch backup in Window 7 64 bit

    Hi folks, I can't seem to figure out why my batch file does not work anymore after I have upgraded from WinXp 32bit. I prefer xcopy vs Windows backup due to ease of accessing my files.

    Batch file called xcopy.bat
    Code:
    xcopy c:\backupsource\*.* d:\backupdest\*.* /d /e /v /y
    placed to C:\Users\MyUserID when executed dose nothing but displays the same line and hogs CPU.

    If I start cmd console and type in the same exact code it works.
    Help is much appreciated.

    Sony KDL40 // ASRock P67 Extreme4 1.40 // Core i5 2500K //
    G.Skill Ripjaws 1600 4x2Gb // HD6950 2GB // Intel Gigabit CT PCIe //
    M-Audio Delta 2496 // Crucial-M4 128Gb // Hitachi 2TB // TRUE-120 //
    Antec Quattro 850W // Antec 1200 // Win7 64 bit

  2. #2
    I am Xtreme zanzabar's Avatar
    Join Date
    Jul 2007
    Location
    SF bay area, CA
    Posts
    15,871
    try redoing it in powershell
    Last edited by zanzabar; 02-13-2010 at 12:42 PM.
    5930k, R5E, samsung 8GBx4 d-die, vega 56, wd gold 8TB, wd 4TB red, 2TB raid1 wd blue 5400
    samsung 840 evo 500GB, HP EX 1TB NVME , CM690II, swiftech h220, corsair 750hxi

  3. #3
    Registered User
    Join Date
    Oct 2006
    Location
    Kirghudu, Cowjackingstan
    Posts
    462

    Thumbs up

    Quote Originally Posted by zanzabar View Post
    try redoing it in powershell
    Outstanding! Thanks for your help. For those who care, you only need to add powershell.exe to you .bat file
    Code:
    powershell.exe xcopy c:\backupsource\*.* d:\backupdest\*.* /d /e /v /y

    Sony KDL40 // ASRock P67 Extreme4 1.40 // Core i5 2500K //
    G.Skill Ripjaws 1600 4x2Gb // HD6950 2GB // Intel Gigabit CT PCIe //
    M-Audio Delta 2496 // Crucial-M4 128Gb // Hitachi 2TB // TRUE-120 //
    Antec Quattro 850W // Antec 1200 // Win7 64 bit

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •