cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nikhil
Level 3

FileService copyFile failing

The copyFile method of FileService fails if the path contains space.
"; severity = 0>
at com.installshield.wizard.platform.win32.Win32FileServiceImpl.win32CopyFile
at com.installshield.wizard.platform.win32.Win32FileServiceImpl.copyFile<127>

Do we have a workaround or any documentation on this?

I am using IA 2009
Labels (1)
0 Kudos
(4) Replies
nikhil
Level 3

Anybody can help?
0 Kudos
pv7721
Level 20

Can you share some light in what you're attempting to do? Thanks!
0 Kudos
nikhil
Level 3

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);
0 Kudos
nikhil
Level 3

Hi Vlad, let me know if you want me to elaborate more.

Anybody has any clue on this?
0 Kudos