• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting File from NT to Solaris Machine

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

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

Sridhar
 
Look ma! I'm selling my stuff!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic