aspose file tools
The moose likes Java in General and the fly likes share a folder Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "share a folder " Watch "share a folder " New topic
Author

share a folder

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 472

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

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
How To Ask Questions How To Answer Questions
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 472

is there any examples using JNI ?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

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

Thanks Rob
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: share a folder
 
Similar Threads
on deployment
CONRAD IS STRANGE
Strange Ant Behavior
problem with starting tomcat 5.5
java 7: cannot find symbol