Results 1 to 5 of 5

Thread: FileService copyFile failing

  1. #1
    Join Date
    Jun 2011
    Posts
    6

    FileService copyFile failing

    The copyFile method of FileService fails if the path contains space.
    <error code = - -30017; message = "The system cannot find teh path specified". <3>"; severity = 0>
    at com.installshield.wizard.platform.win32.Win32FileServiceImpl.win32CopyFile<Native Method>
    at com.installshield.wizard.platform.win32.Win32FileServiceImpl.copyFile<Win32FileServiceImpl.java:127>

    Do we have a workaround or any documentation on this?

    I am using IA 2009
    Last edited by nikhil; 07-20-2012 at 02:53 AM. Reason: Mentioning product version

  2. #2
    Join Date
    Jun 2011
    Posts
    6
    Anybody can help?

  3. #3
    Join Date
    Mar 2006
    Location
    Paris, France
    Posts
    2,036

    Exclamation

    Can you share some light in what you're attempting to do? Thanks!
    Vlad

  4. #4
    Join Date
    Jun 2011
    Posts
    6
    I am trying to copy few files using this service. The paths of source and destination that I pass as an argument to this method contain spaces.
    For e.g,
    Source => C:\Program Files(86)\Some Name With Space\filename.img
    Destination =>C:\Program Files(86)\Some Other Name With Space\filename.img

    When I try this it is not able to copy and fails with the mentioned error, but if i pass names without spaces then it succeeds.

    Below is the code,
    FileService fservice = (FileService) ip.getService(FileService.class);
    fservice.copyFile(sourceFile, destinationFile, true);
    Last edited by nikhil; 07-22-2012 at 08:41 AM.

  5. #5
    Join Date
    Jun 2011
    Posts
    6
    Hi Vlad, let me know if you want me to elaborate more.

    Anybody has any clue on this?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •