Archive: Brakets ( [ ] ) in file name


Brakets ( [ ] ) in file name
I need to have brackets in my file name(s).
When I do


File "..\(A) Preliminary\[01] Agreement.doc"


I get an error. I think it is because File treats brackets as parameters.
Example:


File [/nonfatal] "..\(A) Preliminary\[01] Agreement.doc"

are you using /nonfatal (which is correct) or [/nonfatal] ?

File /nonfatal "..\(A) Preliminary\[01] Agreement.doc"

I'm not using the


/nofatal

switch at all. I'm wondering why my installer can't find this file. I'm wondering if it has to do with the brakets [ ] in the file name.

i don't get errors at all, you sure the file is in the correct location?


That is what I'm wondering it doesn't see the file for some reason. Where should I put the .nsi script?


By the Looks of the Code:


File "..\(A) Preliminary\[01] Agreement.doc"


It Worked for me.. However Try This instead and put your
NSI Script in the Same directory with your Doc.


File ".\[01] Agreement.doc"


Also You might Could try it without the "" That also
Works. It just Depends on what your Doing With the
File.

Won't work without "" if you use Brackets. Can if
no Brackets and in same Directory.

If the File is Located in the Same Directory that your
Script is in than It works with or Without the Quotations
Plus Subdirectories Located in the Folder that the Script
is in.

To add to that if ..\Folder\Doc you must have Quotations.

Correct me if I'm Wrong :-)

-MichaelFlya-

I got it working. I had to copy everything to C:\ and run the script from there. :)