Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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

You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!