none
Batch program with Xcopy command not working with folder name consist of spacing RRS feed

  • Question

  • Batch file A is working well.
    But batch file B is not working due to folder name consist of spacing.
    Any one know how to make it work without remove spacing or rename the folder name ?
    Billion Thanks !

    Batch file A :without spacing in folder name (AdelineTan)

    echo update file Xcopy command
    echo off
    xcopy g:\Friend\AdelineTan h:\testxcopy2 /w /f /s /e /h /d /y /z /i
    echo successfull run press any key to exit
    pause


    Batch File B : with spacing in folder name (Adeline Tan)

    echo update file Xcopy command
    echo off
    xcopy g:\Friend\Adeline Tan h:\testxcopy2 /w /f /s /e /h /d /y /z /i
    echo successfull run press any key to exit
    pause

    Tuesday, March 3, 2009 7:30 PM

Answers

All replies