wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Files control Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Files control" Watch "Files control" New topic

Files control

Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 289

Hi all

I'm using Windows OS and i want to save the files on Hard disk.
And i want to control that files should not delete manually.

Is it possible if not why?


Ankit Garg

Joined: Aug 03, 2008
Posts: 9291

Just see this page for how to use file save dialog. Also I don't think that you can control deletion of files manually from the OS...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Chiranjeevi Kanthraj
Ranch Hand

Joined: Feb 18, 2008
Posts: 289


If we set the Read only and Not executable attributes some how we can control i think.

And one more

How can i delete the File path tree
means file.delete() will work only if the Dir is empty that's why
Rob Spoor

Joined: Oct 27, 2005
Posts: 19653

Recursively delete the tree:

How To Ask Questions How To Answer Questions
I agree. Here's the link: http://aspose.com/file-tools
subject: Files control
Similar Threads
how to install selenium remote control on mac.?
How to avoid the internet files which will be stored in internet temporary folder?
How do I add a jar file to artifactory?
Controlling Java Compiler by Program
File upload filter