- Revenera Community
- InstallShield Forum
- Xcopyfile does not copy empty folder
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Printer Friendly Page
Xcopyfile does not copy empty folder
I have Installshield 2014. and Xcopyfile does not copy empty sub folder, but I have to copy whole folder.
XCopyFile (resdir + "\\*.*", CurrentDate , COMP_NORMAL|INCLUDE_SUBDIR);
Does anyone help me?
Please check the sample code shared in below help link, and try it works or not.
You can also test it by creating a test project and then try to add installscript Custom Action to copy the folder. So that it will be easy to investigate.
Hi, Thanks for answering but It doesn't work.
: I want to copy entire folder in source but the function only copy files.
: It copies folder which has size. It also copies empty file but doesn't copy empty folder(0 Byte).
When I used /E option, I can copy all folder and files including empty folder at Command prompt in windows(cmd.exe)
For example) xcopy SOURCE_DIR TARGET_DIR /e
Is there any way I can copy including empty folder like /e option in installshield script?
Thank you for your post.
You could try the suggestion from Ajay_Ladsaria in the post at the following link:
Please give this a try. Does this work for you?
Please let us know if you have any questions or concerns. Thanks!
I tried Ajay's solution, But I need to know the specify directory.
But I want My Customer can copy the whole file whenever.
I want Copy whole folder.