*
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 Android Security Essentials Live Lessons this week in the Android 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: 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: 19655
    
  18

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: 19655
    
  18

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
 
Don't get me started about those stupid light bulbs.
 
subject: share a folder
 
Similar Threads
CONRAD IS STRANGE
problem with starting tomcat 5.5
java 7: cannot find symbol
Strange Ant Behavior
on deployment