Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying files from Windows to Linux

Status
Not open for further replies.

PStoneMan

Programmer
Oct 25, 2002
8
US
Hi all,
I have a program, written in VB 6.0, that creates a boat load of zip files and then uses FileCopy to move the files over to a LINUX box. This seems to work ok until the files are larger than 20K then at the end of the FileCopy I receive an error 52 "Bad File Name or Number". However, when I check file sizes between the file on the Windows Machine and the file on the Linux machine the sizes are the same. Now I know this does not necessarily mean the filecopy worked, but it sure looks like it does.

Any ideas on why a 20K file would throw such an error when being copied to a Linux box?

Thanks
 
Nope, but sounds like it's more likely an issue for windows or VB rather than linux to me. How are you copying the files? Via Samba over a LAN? Using FTP? Are you sure that the size is significant? Are there any other trends that are different between the files, like binary vs. ascii, file names, file types, permissions on files or folders/directories? What about space issues? are either of your pcs running low on space?

Also, you can run a crc check using the md5sum command to verify that the files are identical copies.

-Venkman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top