Skip to content
⌘ NSIS Forum Archive

CopyFiles not working with UNC paths

3 posts

chundu#

CopyFiles not working with UNC paths

CopyFiles is not working with UNC paths. It works ok when i copy some files within my machine. I can access those files and copy them through the windows explorer.
Here is my sample code:

Section "KTI" SEC_KTI
CopyFiles "\\ffgh\kti\Personal_Folders\kti\test.txt" "c:\users\kti\Test\test.txt"
SectionEnd

I tried removing the quotes-doesnt work.
Tried mapping and copying through Z:-doesnt work
It shows Copy Failed.

Please help
Anders#
Maybe you could try the filesonly switch. NSIS uses SHFileOperation so it should work either way...