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
Post a Comment