This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: XCopyFile Does Not copy Empty Sub-folder
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2011
08:42 PM
XCopyFile Does Not copy Empty Sub-folder
Hi,
I am working on a Basic MSI project with InstallShield 2009. During installation, I need to copy a folder with hundreds empty sub-folders. But XCopyFile did not copy any of empty sub-folder.
Here is the copy code:
XCopyFile(szOrigFolder ^ "*.*", szTarFolder ^ "*.*", INCLUDE_SUBDIR);
Did I do something wrong? BTW, I have processed szOrigFolder and szTarFolder with StrRemoveLastSlash function.
I am working on a Basic MSI project with InstallShield 2009. During installation, I need to copy a folder with hundreds empty sub-folders. But XCopyFile did not copy any of empty sub-folder.
Here is the copy code:
XCopyFile(szOrigFolder ^ "*.*", szTarFolder ^ "*.*", INCLUDE_SUBDIR);
Did I do something wrong? BTW, I have processed szOrigFolder and szTarFolder with StrRemoveLastSlash function.
(3) Replies
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2011
11:04 PM
Hi
About your requirement, please see my blogs:
http://www.cnblogs.com/installshield/archive/2011/09/15/2177290.html
Hope that helps.
BR,
Kevin
About your requirement, please see my blogs:
http://www.cnblogs.com/installshield/archive/2011/09/15/2177290.html
Hope that helps.
BR,
Kevin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2011
11:30 PM
Thanks a lot. It worked. 🙂
And another little question: What is the difference between "sv" and "sz", since both of them are used as the starting part of STRING variable?
And another little question: What is the difference between "sv" and "sz", since both of them are used as the starting part of STRING variable?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2023
02:02 AM
Hi, foundoflife. I have problem that you've solve. But, His Blog does not work anymore. Can you help me ?