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\Transfe r\DMA\Data Files\DMA_ Intake_040 40209.pgp \\192.168.0.40\ftproot\DMA /Y
I keep getting this error:
Logon Failure: The target account name is inccorect
Can someone please take a look at the command below and tell me why it doesn't work?
COPY \\100.2.3.87\Quack\Transfe
I keep getting this error:
Logon Failure: The target account name is inccorect
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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\Data Files\DMA_ Intake_040 40209.pgp \\192.168.0.40\ftproot\DMA /Y
:: 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\Data
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/)
(\o/)
ASKER
Thanks to SteveGTR, your answer pointed me in the right direction.
Try the 'Net use ' Command to map to the file ur'r requiring then copy to the destination folder!