Problems using BAT file to copy file to networked computer

Status
Not open for further replies.

Reilly

Beta member
Messages
1
I am trying to use a BAT file to copy a Quickbooks data file to another computer that is networked together through a hub.

When I doubleclick on the bat file it should copy the file, which it does, however Quickbooks is reporting an error when it tries to open it.

I had this working between two computers but since I upgraded and replaced one of them, the BAT copy code is not working as the file is somehow getting corrupted.

Strange thing is that when I simply click and drag the file from one computer to the other, it copies and will open properly in Quickbooks.


Here is my bat file

@echo off
echo Updating, please wait...

copy /y c:\qbooksw\compdata.qbw \\your-f33bf45ce2\presario\QBOOKSW\

pause

echo Done!


Any idea why the file is get ruined?

Thanks.
 
The only idea I could come up with is that the two computers are using different File tables.

What are the OS's and are they using FAT16/32 or NTFS?

Just for shits and giggles you could try using xcopy and see if it helps. That batch should work perfectly though.
 
Status
Not open for further replies.
Back
Top Bottom