-
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
-
-
Can you share some light in what you're attempting to do? Thanks!
Vlad
-
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.
-
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
-
Forum Rules