Archive: 'File' command in nsis


'File' command in nsis
I am trying to use this line (copied from a sample), which is supposed to loop around copying files. But I get an error

File /r ".\pythontest\*.*"

with this error message:

File: Returning to: ".\pythontest"
File: ".\pythontest\*.*" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)

Error in script "C:\pythontest_install_script.nsi" on line 111 -- aborting creation process


any ideas?


Well, obviously it can't find files.
Are you sure there is a 'pythontest' folder where you script is saved?
And are there files in that folder?


Yep. Everything is there. No problem. I've given it the full path and it's off and running. Had this same problem with another part of the script. I don't know what's going on but I need to get on and that's what I'm doing.... work around it...

thanks for the help

:)


Try without the '.\'

File /r "pythontest\*.*"


( duplicate post )


( duplicate post )