Copy files to local system from shared drive on network

Discussion created by HimanshuKhandelwal626469 on Dec 22, 2015
Latest reply on Dec 23, 2015 by HimanshuKhandelwal626469

I am trying run a batch file which copies file from local machine to our shared drive but getting below error message,
"The system cannot find the drive specified"

Here is my batch script where z is the shared drive,
copy E:\Test\Test1.txt z:\Test1_%date:~10,4%%date:~4,2%%date:~7,2%.txt
Also this is working fine when I run it through command prompt.

Is there a way to copy file to shared drive?

Thank you in advance.