sorry, missed the second backslash between sharename and filename.csv
String to="\\\\serverName\\SHAREN
Main Topics
Browse All TopicsI am trying access a shared network drive through JAVA. If I am logged in to Windows XP, it works fine. I am using Eclipse. When I create jar file and automate the process for the times that my desktop is locked, it gives "Access is denied" exception.
I looked to the knowledge base, but couldn't find my solution.
The error is:
java.io.FileNotFoundExcept
How can I get around this error? Is there a way to login to a network drive as if I am logging in to a JDBC drive?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Not really.... When you are logged in like you are now you have shares that can be read by 'anonymous'.
I've never really seen why you would want this more secure when logged off or on screen saver.
If something is open all day what good would it be to lock it while you are out on your lunch break. If someone wants to access it they can do it in an hour.
(just my thoughts)
Business Accounts
Answer for Membership
by: darron_chapmanPosted on 2008-11-12 at 07:31:39ID: 22940498
String to="\\\\serverName\\FileNa me.csv" ... you most likely mean
AME\FileNa me.csv"
String to="\\\\serverName\\SHAREN
You have to specify a sharename when referencing a UNC path...