Question : bat file help - how to do a backup

I have a bat file which when clicked, copies all files from one PC to another. (for backup purposes)

Im currently trying to backup up an entire drive.

it copies across OK but when I go on to the pc where the files are to be copied they don't appear.

But when I access the same folder via "my network places" it shows up but as a read only folder. (slightly transparent.

Any ideas.
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
echo ### Incremental Backup of the server
set hour=%time:~0,2%
if "%hour:~0,1%"==" " set hour=0%time:~1,1%
 
Set DirNam=Z:\Blog
ROBOCOPY D:\ %DirNam% /e /r:1 /w:2
 
@pause
Open in New Window Select All

Answer : bat file help - how to do a backup

I just tried this to a network computer moving a local file on my c: drive and it worked.
robocopy c:\ computername\c$ test.doc /copyall

it also works to a server eg: robocopy c:\ \\servername\c$ test.doc /copyall

I think you need to chack whast %dirnam% references.

What do the robocopy stats at the end say?
Random Solutions  
 
programming4us programming4us