Link to home
Start Free TrialLog in
Avatar of Taz2
Taz2

asked on

Need help copy file ...

Hi everyone,

Can someone please take a look at the command below and tell me why it doesn't work?

COPY \\100.2.3.87\Quack\Transfer\DMA\DataFiles\DMA_Intake_04040209.pgp \\192.168.0.40\ftproot\DMA /Y

I keep getting this error:

Logon Failure: The target account name is inccorect

ASKER CERTIFIED SOLUTION
Avatar of SteveGTR
SteveGTR
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hey.

Try the 'Net use ' Command to map to the file ur'r requiring then copy to the destination folder!
Avatar of rogerperkins
rogerperkins

You may also need to 'Net use' to map the destination, if it is not local.
Try this:

:: This maps the machine you want to use
net use \\100.2.3.87  or \\server_name  (depends if you are local or not)

:: Copies necessary files
copy C:\Quack\Transfer\DMA\DataFiles\DMA_Intake_04040209.pgp  \\192.168.0.40\ftproot\DMA /Y
The "/Y" parameter goes after "copy" not at the end of the string.
Don't forget to add /Z on copy when network is involved.  It will not address your question nor change that the above are good answers, but after started the /Z mode will drasticly reduce or eliminate errors due to normal collisions found in networks.

(\o/)
Avatar of Taz2

ASKER

Thanks to SteveGTR, your answer pointed me in the right direction.