Getting  file from local network computer

Hi! I have a problem to get the file form local network. I have tried following ways to do it:
new File ("file://10.150.11.214/pics/bilde.JPG");
new File ("smb://10.150.11.214/pics/bilde.JPG");
new File ("http://10.150.11.214/pics/bilde.JPG");There is always error:
java.io.FileNotFoundException: file://10.150.11.214/pics/bilde.JPG
(The filename, directory name, or volume label syntax is incorrect)On the local computer IP is 10.150.11.214 and shared folder "pics"
Can U give me some solution!
tnx! ;)

Manivel wrote:
+@kajbj+
Why? The problem is already solved.
<BR>
Yes correct, but see OPs previous post.
+PeterisR wrote
I had tried as U sad, Manivel! but there were problems .. tnx, anyway!+Ok. I can understand that you want to know why / how it failed, but using URI/URL is in this case not the best way. Using the normal File class and UNC name is far more common.
Kaj

Similar Messages

  • How can I get file from local disk?

    hi, in my project, I store the files in server local disk, and store file name in Database. How can I get the file according to the file name in database? which means the file names in database are mapped to the file in local disk. How Can my application get the file according to the file name in DB?
    PS: file name are show on one web page as link, when user click the link, user can either open the file immediately or download to local PC.

    Hi Ashutosh
    You will have to use sapcar.zip which contains the utility Sapcar.exe utility for unzipping the files from SAP compressed files. (*.car file)
    Regards
    Gaurav
    PS: Reward points if solved

  • I am trying to delete an XLS file from a network drive and am getting a message that says the file cannot be deleted because it is in use.  I can't see where it is in use and have tried to reboot the computer to no avail.

    I am trying to delete an XLS file from a network drive and am getting a message that says the file cannot be deleted because it is in use.  I can't see where it is in use and have tried to reboot the computer to no avail.  I can delete other files but several XLS files are giving me this message.

    You said it was a network drive.  So is someone else on the network using that same file or may have have left with excel still accessing it on their system?

  • Unable to upload files from local computer to remote server (Was: Dreamweaver)

    I have lost the connection between the remote location and the local location for files on my computer. Where to I correct this issues, since I cannot upload files from local to remote. Host server from server to my computer works fine, Running Dell computerr XP operating system with CS3 Dreamweaver. Need all the help I can get.

    I am now having a "ftp error - cannot make connection to host. Dreamweaver
    encoutered a netwoerk or file system error. I did as you suggested and I
    get to basic site definition, ( which looks o.k.), next screen ( no,I do
    not want to use a server technology) Next screen ( edit local copies on my
    machine ( file location looks o.k.), next screen (connect to remote
    server=ftp) address of web server is correct, ( no folder on server, or ftp
    login or ftp password) do not enable check in or check out
    summary: local
    Site name:midhba
    local root folder:midhba
    remote info:
    access; ftp
    FTP host: midhba.com
    check in.check out diabled
    testing server (set up later)

  • I  have a new Mac Pro computer and have migrated my files from my older computer to the new computer. In trying to open a Lightroom catalog on an external hard drive  I keep on getting the message "lightroom cannot use the catalog named " " because it is

    I  have a new Mac Pro computer and have migrated my files from my older computer to the new computer. In trying to open a Lightroom catalog on an external hard drive  I keep on getting the message "lightroom cannot use the catalog named " " because it is  not writable and cannot be opened. I have fixed all the "permissions" and yet it will still not open. How do I fix this?

    Hello Forum Members,
    I figured it out. You have to select  the actual logo of the Lightroom catalog and then click on  "get info" and allow what ever your new user name to "read and write". That worked!
    Henri Silberman

  • Can't preview files from a network drive to a local CF9 server.

    Hi,
    I have the following set up:
    CF9 Local Dev version
    CF Builder 2.
    Project files are in a network drive N:\project
    I have RDS set up and everything seems to work ok, view DSN, files, etc on my local server.
    In the URL prefix section I even created a map:
    Local Path: N:\project,
    URL prefix: http://localhost:8500/project/
    There is no FTP set up on the CF9 server.
    The problem is that when I try to preview a file that I am working on from N:\project, it doesn't show on my local server. The previewing part works if I manually move the file to CF9. But it is the automatic uploading (or moving) of the file to the local CF9  that doesn't seem to work.
    BTW, I have a similar set up in DreamWeaver, where I am editing the same project (or site in this case) off of  N:\project, uploading to the same local CF9 server through RDS, and it works fine.
    I know that if in CF Builder you move the project to under the web root it will work but that would not work for us, since we need to keep the project source files on a network drive for sharing/backup purposes.
    Has anyone been able to successfully preview source files from a network drive on a local CF9 server?
    Thanks in advance,

    Hi again,
    After doing some more googling I realize that for files to be previewed the MUST be under wwwroot. This wasn't too clear in the CF documentation.
    So my new question is:
    Is there are way, once I save a file to automatically copy it from one location(N:\project) to another (c:/ColdFusion9/wwwroot/project)?
    I think there is a way to do it with Ant or some sort of Eclipse feature, but I am not too familiar with either. Could someone point me in the right direction?
    Thanks,

  • Using robocopy to copy files from a network share over a WinRS command line session

    Hello,
    Preface: Using server 2008 enterprise.
    I can't seem to get robocopy to function over WinRS and I'm not sure where the problem actually lies.  Running robocopy locally on the computer does work fine, but as soon as I try to run it through a remote command prompt through the WinRS client or directly with the WinRS client I get an access denied message (error 5).
    I've tried using runas while logged into the remote command prompt as well, thinking that it could have been some sort of permissions inheritence issue.
    I've checked the permissions on the remote file share, I've even given 'Everyone', 'Anonymous Logon' and the computer's active directory account full control over the folder and the file I'm trying to copy, but still get the access denied error.
    I've tried using /COPY:DT since I read that usually resolved error 5 issues.
    None of these things have worked.
    I'm kind of out of ideas, I've read some blogs of people who have written powershell scripts which use winrm/robocopy so I figure I'm missing something stupid.  Or maybe I've stumbled upon a bug?
    C:\>robocopy \\192.168.100.1\share c:\test example.exe
       ROBOCOPY     ::     Robust File Copy for Windows
      Started : Mon Feb 09 17:35:32 2009
    2009/02/09 17:35:32 ERROR 5 (0x00000005) Getting File System Type of Source \\192.168.100.1\share\
    Access is denied.
       Source - \\192.168.100.1\share\
         Dest : c:\test\
        Files : example.exe
      Options : /COPY:DAT /R:1000000 /W:30
    2009/02/09 17:35:32 ERROR 5 (0x00000005) Accessing Source Directory \\192.168.100.1\share\
    Access is denied.

    Yep, I verified permissions on them all :(
    To maybe complicate the issue, I looked at the environment variables for myself while logged in locally to the computer and through WinRS and they look to be the same.   
    EDIT: Out of pure frustration I wrote a quick console application which impersonates the currently logged in user and copies a file from the network share I'm trying to access to the local computer.  The application properly impersonates the user - but does not copy the files while it's run through WinRM.  When you run the application as a locally logged in user it works just fine.
    WinRM must be behaving goofy :(
     This is the output of the following application:
    C:\Windows\System32>test.exe 
    Name: domain\loggedinuser 
    IsAuthenticated: True 
    User: {GUID} 
    AuthenticationType: Kerberos 
    Destination directory doesn't exist, creating new directory.. 
    Undoing impersonation.. 
    No exceptions, no nothing :(
    Imports System.IO 
    Imports System.IO.File 
    Module Module1 
       Dim impersonationContext As System.Security.Principal.WindowsImpersonationContext 
       Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity 
       Dim cpr As New copyProgress(AddressOf FileCopyProgress) 
       Dim destinationDir As DirectoryInfo = New DirectoryInfo("c:\destination\") 
       Private Delegate Function copyProgress(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32 
       Private Declare Auto Function CopyFile Lib "kernel32.dll" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal lpProgressRoutine As copyProgress, ByVal lpData As Int32, ByVal lpBool As Int32, ByVal dwCopyFlags As Int32) As Int32 
       Private Function FileCopyProgress(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32 
       End Function 
       Private Function FileCopyProgress2(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32 
       End Function 
       Sub Main() 
          Try 
             currentWindowsIdentity = CType(System.Security.Principal.WindowsIdentity.GetCurrent, System.Security.Principal.WindowsIdentity) 
             impersonationContext = currentWindowsIdentity.Impersonate() 
             Console.WriteLine("Name: " & currentWindowsIdentity.Name) 
             Console.WriteLine("IsAuthenticated: " & currentWindowsIdentity.IsAuthenticated) 
             Console.WriteLine("User: " & currentWindowsIdentity.User.ToString) 
             Console.WriteLine("AuthenticationType: " & currentWindowsIdentity.AuthenticationType) 
             If Not destinationDir.Exists Then 
                Console.WriteLine("Destination directory doesn't exist, creating new directory..") 
                destinationDir.Create() 
             End If 
             CopyFile(Path.Combine("\\192.168.100.1\share\", "example.exe"), Path.Combine("c:\destination\", "example.exe"), cpr, 0, 0, 0) 
          Catch ex As Exception 
             Console.WriteLine(ex.ToString) 
          Finally 
             Console.WriteLine("Undoing impersonation..") 
             impersonationContext.Undo() 
          End Try 
          Console.ReadKey() 
       End Sub 
    End Module 

  • Copy file from local host to remote host

    Hello,
    I need to copy a simple file from local file system , to another computer on the same network.
    How should i do that in a simple java program ?
    Thanks !

    Well , I tried that from winXP to winXP on another machine and it worked great :
           InputStream in = new FileInputStream(new File("C:\\temp\\myFile.txt"));
            OutputStream out = new FileOutputStream(new File("\\\\9.143.85.143\\c$\\tmp\\myFile.txt"));
            // Transfer bytes from in to out
            byte[] buf = new byte[1024];
            int len;
            while ((len = in.read(buf)) > 0) {
                out.write(buf, 0, len);
            in.close();
            out.close();
      BUT, in order to copy to a linux machine, I tried to put this as the new File :
    OutputStream out = new FileOutputStream(new File("\\\\9.143.86.145\\root\\tmp\\myFile.txt"));
      and it doesn't work. How should I format the new File path in order to copy to a linux FS ?
    Thanks !

  • Getting files from a PC via a wireless router?

    I am trying to get files from my room mate's laptop by going to Finder and then Network. I see the computer's name (Toshiba-User) with a light gray network icon and when I double click to connect, it shows me the little white bar with the blue lines through it then it says:
    "SMB/CIFS File System Authentication
    Enter the workgroup or domain and your user name and password to access the server "TOSHIBA-USER."
    Workgroup or Domain:
    WORKGROUP (<-----that's a text box, I can type whatever I want in it but it's filled out like that automatically.)
    Name:
    LUIS (<------------That's another blank text box but it's automatically filled out like so)
    Password:
    (blank text space)
    (box) remember this password in my keychain
    Cancel OK
    My room mate claims to never have set up any kind of "WORKGROUP" and doesn't even know what the password is. I need the assistance of the more mac-experienced!

    Actually, you need someone more PC-experienced.
    The fact is, if the PC user never defined a workgroup, then 'WORKGROUP' is the default, so that's what his machine is.
    Despite how it may look, the Mac doesn't know that, it's just an assumption since it's the default on your Mac, too, unless you've changed it in Directory Access.
    As for the Username, it's defaulting to 'Luis' since that's your username on your machine. The Mac OS assumes that your username is the same on the other machine, but if it isn't you're welcome to change it here.
    As for the password, the account should have a password set on it - note that this is the password for the account on the remote PC and is in no way related to any password set on your machine.
    You'd need to talk to your roommate to find out what username and password you should use to log onto his machine.
    If he's truly never set a password on his machine, then the machine should be blank, but that's a horribly scary situation to be in - a Windows system with no password set? :: shudder :: I'm surprised it's not crawling across the desk with all the bugs, spyware and viruses it must be infected with.

  • Extracting .s2p files from 8722A Network Analyzer?

    Hi,
    I wish to extract .s2p files from my HP 8722A Network Analyzer.
    I could not find a driver for it. It is connected to my computer over GPIB.
    I am quite new to this, so if anyone could explain the overall process to extract .s2p files from a network Analyzer, that would be much appreciated.
    I imagine that one takes a measurement, stores it under a certain filename, then a command retrieves it and sends it to the computer?
    Thank you so much,
    Nicolas
    Solved!
    Go to Solution.

    Nicolas,
    Instead of extracting the .s2p files, which because of the age of the device (manual I found said 1991), could be very difficult, I think we would be better served communicating with the device directly and not using the files it creates. Instead of the process you described, we could set it to take a measurement, send the measurement to the computer, and have the computer do any manipulation/saving it may need.
    This manual discusses the basics of communication over GPIB with that device in chapter 12:
    http://cp.literature.agilent.com/litweb/pdf/08720-​90135.pdf 
    GPIB communication is typically pretty simple. The computer will just send the device in question the command or series of commands then wait for the response back, much like the GPIB examples in labview (Example finder>>Hardware IO>>GPIB).
    Unfortunately for us, the Agilent website here:
    http://www.home.agilent.com/agilent/product.jspx?c​c=US&lc=eng&ckey=8722A:epsgro&nid=-536900197.53690...
    only has the operating and service manuals, and not the programming reference manual.  You may want to contact agilent to get the programming reference manual, as that will list all of the commands you need to send the device.
    Regards,
    Kyle Mozdzyn
    Applications Engineering
    National Instruments
    Regards,
    Kyle M.
    Applications Engineering
    National Instruments

  • How to get file from FTP Server using File Control

    Hi,
    Any one did getting file from FTP Server?
    Please let me know any one help me.
    I would need to get file from FTP Server.
    Thanks,
    Madhu

    Yes I have done that. But In FTP Server I cannt read file, because no previliges. Only I need to copy file from FTP Server to local server then only I can read that file.
    I tried all options using FileConrol(getFiles(),read()).
    getFiles() - It wont copy the file, it give information about file.
    read() - I dont have previliges to read the file.
    Please tell me any other procedure would be there for getting file from FTPServer.
    Thanks,
    Madhu

  • Copy file from local system to Azure VM using powershell

    Hi
    Is there a simple powershell command to copy a small file from local computer to Azure VM. Point to Site is not an option for me.
    I am hoping for something simple like
    Copy-Item C:\Wabash\Logfiles\trasfer.txt -Destination C:\Presentation -ConnectionUri $uri -Credential $credential
    similar to Invoke-Command
    The only other option i have seen is 
    http://www.mattwrock.com/blog/copy-files-from-local-computer-to-an-azure-vm
    which i fell for my purpose is over kill.

    Hi,
    I will mark Ed's post as answer, if you fount that doesn't give you help, please feel free unmark it and follow up with more information.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I move large files from a Windows computer to my MacBook Pro? There are a lot of photos (tiffs

    How do I move large files from a Windows computer to my MacBook Pro? There are a lot of photos (tiffs, jpgs, some photoshopped files), iTunes library, word docs. Is there a particular type of external hard drive that can be used or am I limited to copying stuff onto z-drive and moving that way?

    If both computers are on the same network, you can share the files from the Windows host using SMB and mount the share on the Mac. Otherwise, the Mac should be able to read (not necessarily write) any storage device formatted in Windows.

  • Can't print from a network computer to my HP Deskjet D2680 on a Windows 7 computer

    I have an HP Photosmart 2610 all-in-one printer connected to my HP desktop computer via a USB cable.  The computer is running Windows 7 Home Premium (64 bit).  I downloaded the current software and drivers from Hp (364 MB).  I can print to this printer from any other computer on my home network.   So far, so good.
    Now the problem.  I also have an HP Deskjet D2680 printer connected to the same HP desktop computer above via a USB cable.   I downloaded the current software and drivers from Hp (101 MB i think).   I can print to the D2680 from the HP computer, but I cannot print to the computer from any computer on the network.  The print request does not generate an error.  Nothing happens.  No print job shows up in the print queue on the HP desktop computer.
    When I add the D2680 as a network printer on any of my other computers, the D2680 printer is seen.  The Add Printer function knows that the printer it is a D2680 printer and sets up the correct printer driver.  Everything appears fine, but I just can't print to it from any network computer.
    I then tried to add the D2680 as a local port... no luck.  I identify it as \\ computer-name \ share-name, where computer-name is the name of the HP computer, and share-name is the name assigned to the D2680 when I shared the printer.  On the HP computer, user passwords are turned off and all sharing options are turned on.  I also modified the D2680 security to allow full access from NETWORK.   When I ty to create the local port... Access Denied.
    Does the D2680 support network printing?  If not, why? If not, someone from HP should be demoted to the mail room for that decision.  If so, it is not working.  So what do I do?  Take a sledge hammer to it, then go buy another printer? 
    So much for plug and play.   It's more like plug and cry.
    Thanks in advance for your suppprt.
    David

    I found a thread about the HP Print & Scan Doctor software tool. I downloaded and ran it.  It detected a conflict with the D2680 driver / software, so I uninstalled the driver / software.  I then reran the software install, and now everything works fine.

  • I have 3 computers. i want to get files from one to another. it doesn't work, i think it is a problem with the apple id?

    i have 3 computers. i want to get files from one to another. it doesn't work, i think it is a problem with the apple id?

    Roger:
    Zugriffsrecht means Access Right according to the translators.
    martinamm:
    You can't do what you want with iCloud.  You will need to setup remote access to your main computer with VPS or some similar remote access application.   With VPS you have an application running on your main computer turning it into a server and an client app on your laptop so you can access it remotely.  There are many such apps out there, some probably more feature filled than VPS.  You might post in the system forum that you're running and ask there.
    OT

Maybe you are looking for

  • Native photo's at 3264*1836 (16:9) format

    Hi there, I am switched from a Nokia C6-01 to a Iphone S4. The Nokia C6-01 had the possibilty to take photo's at many resolutions, 3264*1836 (16:9) 6 megpix format was one of them. However so far as i know the Iphone 4S knows default only one format,

  • Some deathful bugs of JSF EA3 !!through test strictly!!

    bug1--about Input components ( like Input_text ) , test course : I put a input_text in form1,if user modify the value of the input_text from 'xxxx' to null then submit the form,and the new null value of the input_text is not submitted,and the value s

  • FTP error cannot make connection to host, ftp not working in browsers

    hi bear with me as im not webmaster, using dreamweaver mx and today i cant up load anything just keep getting ftp error occurred - cannont make connection to host. so figured to was a problem with my hosts and its all fine their end, ive tryed it in

  • Bad Performance on SQL 2005 multiserver installation

    We have upgraded our server environment from  a single server solution with SQL 2000 and are now running on a multiserver solution with one DB server with SQL 2005 and two applictionservers. And now we are experience a much slower performance in our

  • Unit selling price is not updating

    Hi I am updating unit selling price of an item using API. code:    v_line_tbl (1).request_date := SYSDATE;    v_line_tbl (1).unit_selling_price := 299; in the above code request_date is updating to sysdate but selling price is not updating. how to do