Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Directory not writable

843789Jul 8 2009 — edited Apr 19 2010
Hi
In the code below I am getting "The directory is not writable" mesasge.But this directory is writable.I can very much create a file/folder/shortcut in this directory.
File f = new File("C://Documents and Settings/vgosa/Application Data/Microsoft/Internet Explorer//Quick Launch");
       if(f.canWrite())
           System.out.println("The directory is writable");
       else
           System.out.println("The directory is not writable");
Can anyone please help me with this.?.

Thanks
-Vikz
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2010
Added on Jul 8 2009
26 comments
1,932 views