[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: DOS Copy command



> I haven't tried it, but I suspect your problem comes
> about because COPY is an intrinsic command, ie it's
> built in to the command processor and doesn't exist
> as an actual file like COPY.EXE which the call
> system command is probably looking for.  I'm
> assuming the other commands you tried that worked do
> in fact exist as files.
>
> So, one way to get around your problem would be to
> create a GKCOPY.BAT file that just says COPY %%1 %%2
> and call GKCOPY from your SQR.

That's what I ended up doing, and it worked fine on my machine.  But
when I moved it to my production NT server it stopped working - even
though the call continued to return a 0 return code.  I also tried the
batch file with XCOPY which is not intrinsic, and got the same result.

Dunc.




_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com