Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting File from NT to Solaris Machine

Leela Sridhar
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a java program which does file copy. Its working when the program is running in NT machine and source & destination are NT.

File copy is not working when File source is NT and File Destination is Solaris. It says it found the file in NT but unable to copy it. I have a drive map from solaris to NT. The following is the line of code written for file copy
File dir = new File(destDir);
return requiredFile.renameTo(new File(dir, requiredFile.getName()));
the return is false.

Can anybody suggest me what change I have to make so that the copy takes place....I know renameTo is platform-dependent.

Thanks in advance

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic