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

Author Topic: XCOPY Problem  (Read 3159 times)

0 Members and 1 Guest are viewing this topic.

Rol

  • Guest
XCOPY Problem
« on: June 13, 2005, 12:25:19 PM »
Hey folks.  Sorry if this has been covered in another thread.

I am trying to run an xcopy batch job that copies all of my financial files from my server here in the office (S:\) to an externaal USB external drive (F:\) attached to my computer.

When I open a command line, dos shows me that I am in h:

How can I run a batch job that first switches to the s drive, then copies the files from the s: drive to my f: drive?

Thanks,
Rol  

drpunkerz

  • Guest
Re: XCOPY Problem
« Reply #1 on: June 13, 2005, 12:37:06 PM »
I don't even think you would have to switch drives really.

Code: [Select]

@echo off
xcopy /E S:\* F:\*


don't mind that /E option... thats so that it includes subdirectories as well (assuming that you want that).
If not just get rid of the /E part of the code.

--drpunkerz

Rol

  • Guest
Re: XCOPY Problem
« Reply #2 on: June 13, 2005, 12:41:15 PM »
Okay I will show you what I tried (keep in mind that I am trying to set this up as a .bat file so I can get Windows Task Manager to run it for me):

xcopy S:\Kristi's Documents\Current Quickbooks\*.* F:\TCSSC Backup\Current Quickbooks\ /W/S/E/Y

This has not been working for me...

drpunkerz

  • Guest
Re: XCOPY Problem
« Reply #3 on: June 13, 2005, 01:41:47 PM »
I'm a newbie to batch files but I don't see why that doesn't work for you. Anyone else have any suggestions?

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: XCOPY Problem
« Reply #4 on: June 13, 2005, 05:05:20 PM »
Give this a try:

xcopy "S:\Kristi's Documents\Current Quickbooks" "F:\TCSSC Backup\Current Quickbooks" /W/S/E/Y

The command processor can be a tad picky sometimes. 8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

Rol

  • Guest
Re: XCOPY Problem
« Reply #5 on: June 14, 2005, 07:46:37 AM »
That did that trick!  Thanks so much for all of your help.  LONG LIVE DOS!

Cheers,
Rol