File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes share a folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "share a folder " Watch "share a folder " New topic
Author

share a folder

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 477

Hi guys ,

is there a way in javase to edit a folder properties and make it shareable over the network ?


Thanks,
Sherif
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

Not without some OS custom coding. For Windows this means using JNI or calling an external tool (if such a tool exists). For UNIX this means editing the Samba configuration file and restarting the Samba daemon.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 477

is there any examples using JNI ?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

I don't know how to do that with C, C++ or C# code, so not from me. I think all you need to do is modify the registry but I really haven't even looked at this before.
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 477

Thanks Rob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: share a folder
 
Similar Threads
Strange Ant Behavior
CONRAD IS STRANGE
java 7: cannot find symbol
on deployment
problem with starting tomcat 5.5