Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Xcopy on Win XP Pro (help)  (Read 2575 times)

0 Members and 1 Guest are viewing this topic.

jrbk

  • Guest
Xcopy on Win XP Pro (help)
« on: October 10, 2005, 10:09:22 AM »
I am attempting to write a .bat file to be used on a Windows XP Pro machine. I want to be able to copy (backup) files that are on a mapped network drive to a USB Flash Drive.

Initially I am writting a .bat file to copy the entire dirctory from the mapped network drive to a folder on my computer. Once I get the .bat file to do what I want I will change the drive letter and location to repflect the location of the USB Flash Drive.

Here is the file that I have written but won't do what i want.

xcopy I:\Backup "." C:\pb /s/h/i/r/c/y/
exit


The name of the file is Remotebu.bat. When I click on it the MS-DOS window flashes and the files are not coies. I am not sure what I am doing wrong.

Any help would be aprreciated.

2k_dummy



    Specialist
  • A word, once spoken, can never be recalled.
  • Thanked: 14
    Re: Xcopy on Win XP Pro (help)
    « Reply #1 on: October 10, 2005, 10:46:57 AM »
    Try this

    xcopy I:\Backup\*.* C:\pb /s/h/i/r/c/y
    If you don't stand for something, you'll fall for anything.
    _______________________________________ ________
    BlackViper

    Software and utilities

    jrbk

    • Guest
    Re: Xcopy on Win XP Pro (help)
    « Reply #2 on: October 10, 2005, 10:53:49 AM »
    Thank you 2k_dummy. Adding the "\" did the trick.