473,427 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,427 software developers and data experts.

Copy files from samba share

184 100+
Hi All,

I would like to have the simple java code that copy the files from samba share to local drive.

When i tried with below snippet , file not found exception occured. Please do needful
Expand|Select|Wrap|Line Numbers
  1. try{
  2.  
  3. String source = "//IP.VV.YY.XXX//test//mm";
  4. File sourceFile = new File(source);
  5. FileInputStream stream = new FileInputStream(sourceFile);
  6. System.out.println("\n\n Input stream available >>>>>>>>>> "+stream.available()+"\n\n\n");
  7.  
  8. }catch(Exception e){
  9. e.printStackTrace();
  10. }
  11.  
  12.  
  13. Exception:
  14. java.io.FileNotFoundException: \\IP.VV.YY.XXX\test\mm(The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you.)
  15.  
  16.  
Sep 4 '12 #1
0 1821

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Tyler Sample | last post by:
I've got a Samba share set up on a LINUX box. It's set up for user-level access. A Windows user is mapped to a UNIX user. When accessing through file explorer, a username/password box pops up,...
0
by: durumdara | last post by:
Hi ! I have some backup files on a server farm. I want to store these local backup files on a backup file server for "safety's snake". These files are compressed zip files with 12 character...
1
by: jon wackley | last post by:
Hi All, Hope that this is the correct group to post this in, I'm quite stuck and have tried a great number of things including the MS knowledgebase, google, and other resources. I created a...
8
by: Chris Strobel | last post by:
I have 2 web servers where I need to write a PDF file and need to keep them in sync. In others words, If the Server1 is getting called to create the PDF, then it needs to copy the PDF to the other...
1
by: Daniel T | last post by:
I have a web application that needs to copy files from a network share. I have been trying to use impersonation to accomplish this. This works if I impersonate my own network account ( ...
4
by: sajid_yusuf | last post by:
Hi I am trying to develop a Windows service in VB.NET which has timer enabled and keeps checking a folder (or group of folders) for any new file or changed files. As soon as it detects any new...
1
by: dkmarni | last post by:
Hi, I am trying to do this perl script, but not able to complete it successfully. Here is the description what the script has to do.. Accept two and only two command line arguments. Again,...
1
bhing
by: bhing | last post by:
hiya everyone!! i would like schedule task using crontab to copy files from linux to windows xp. I understand that when you browse to windows you use the command 'smbclient //hostname'.. but what...
3
by: =?Utf-8?B?U2Vhbk1hYw==?= | last post by:
How do I programmatically copy files across a network (from a local workstation to another local workstation on the network) using visual basic 2005? In other words, when in explorer and you enter...
7
by: Jason | last post by:
How would I create a simple vb script with a GUI interface to copy files from a fileserver to a PC. for example, I would have a form with Radio Buttons or Check Boxes box1 - copy prefs box2 -...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.