Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create a CIFS (Windows File Sharing) share

843789Sep 13 2010 — edited Sep 13 2010
I recently started a new programming job that deal primarily with Java. I have been a C programmer most of my life, so I am making a transition during this process. I am familiar with Java, if only in that I have dabbled with it previously.

The project I am going to be taking over is written exclusively in Java (targeted directly at Windows), with the help of some Windows batch files. One of the main functions of the server side of the program is providing remote storage via CIFS (aka "Windows File Sharing") for other clients on the network. Yes I know this isn't the most efficient method, but it's what is used due to its simplicity.

Up until recently, the shares were created manually, which I simplified with a batch script. What I am looking for now is a way to have the server portion of the program create the file share automatically at run time. To go along with that, I would also like it to be able to check the file share each time it is run to see if the file share is still setup and/or has been changed somehow.

Much to my dismay, searching on Google has been less than productive. I have found many articles on how to access file shares from Java, but what I am really needing is info on how I can create file shares from Java. Any help, links, tutorials, or other such information is greatly appreciated.

Nick
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 11 2010
Added on Sep 13 2010
2 comments
388 views