aspose 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
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: 483

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: 19762
    
  20

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: 483

is there any examples using JNI ?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19762
    
  20

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: 483

Thanks Rob
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: share a folder