File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Rename

 
Chris Ramsey
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have tried everything from past posts to try and resolve a file renaming issue I am having. Files have correct permissions and exist in different directories at the time the rename is attempted.

Can anyone see any issues with my code? Thank you.
 
Sri Ram
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone see any issues with my code? Thank you.


I dont see any issue with this code dude. Its executing properly and its changing the file name also.
 
Chris Ramsey
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why isn't it renaming the file?
 
Chris Ramsey
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the problem! The orinigal file is created in another method. I did not close the file before trying to rename. Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic