Re: RUNNING XXCOPY.EXE



Odds are good you have spaces in either the source or target paths. Spaces
terminate &macro expansion.

But what the heck is xxcopy.exe? There's and xcopy.exe that ships with the
OS. Is that what you're using?

I'd run this as a .bat (or .cmd) file so you can display what's happening
and spot any issues:

@ECHO OFF
ECHO SOURCE %1
ECHO TARGET %2
XXCOPY %1 %2 /E/H/Y/YY
PAUSE

Or something like that.

Dan

TonySper wrote:
I am using the xxcopy.exe program to backup and restore files within
my program. All works well as long as I keep the complied program
running in any folder in the computer. My problem is that I also run
the program from a flash drive. When I run the program in the flash
drive in a different computer, the xxcopy.exe command does not work.
It does pop up the DOS window but just blinks it on and off. I am
using the run command like: RUN XXCOPY &FROM &TO /E/H/Y/YY
I have tried putting the COMMAND.COM in the flash drive directory but
that does not work. Anyone have a better way or any ideas of my
problem?? Oh yes the &from and &to are variables that I get from my
database. TonySper


.



Relevant Pages


Loading