Access is Denied Error while running batch file to copy files -


echo off copy "\\192.168.7.10\c$\documents , settings\administrator\desktop\abc\detail.csv" \\192.168.7.20\c$\users\administrator\desktop\book\"      if "%errorlevel%"=="0" set /a a=1 if "%errorlevel%"=="1"  set /a a=0  if %a%==1 echo copy successful   if %a%==0 echo failed copy   pause exit 

please suggest why error persists while running batch script

this error persists either because have no permission read "\\192.168.7.10\c$\documents , settings\administrator\desktop\abc\detail.csv" or because have no permission write \\192.168.7.20\c$\users\administrator\desktop\book\.

also have superfluous double quote @ end of \\192.168.7.20\c$\users\administrator\desktop\book\.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -