Need a batch script which should access the shared location and drop a file in that location
Hi,
I need a batch script which should access the shared location and drop a file in that location
When we access the shared location it will prompt for username and password, the batch script should connect that location using that permission.
Then it should copy the files from the source location and drop in the destination location.
For example batch script should have the following:
Share location path -
\\XXXX\test
User name – XXXX
Password –
XXXX
Source file –
C:\test.txt
Destination location -
\\YYYY\test
If any one knows how to get workaround on it, please tell me.
Thanks in advance.
December 27th, 2010 12:37am
Hi,
You can try to create a .bat file, then use “net use” and “copy” command for test. More detail you can refer:
http://technet.microsoft.com/en-us/library/bb490717.aspx
Hope it helps.
Regards,
Leo
HuangPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
December 29th, 2010 3:56am