sethjackson
18th May 2005 14:35 UTC
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"
Yathosho
18th May 2005 16:34 UTC
are you using /nonfatal (which is correct) or [/nonfatal] ?
File /nonfatal "..\(A) Preliminary\[01] Agreement.doc"
sethjackson
19th May 2005 14:34 UTC
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.
Yathosho
19th May 2005 15:12 UTC
i don't get errors at all, you sure the file is in the correct location?
sethjackson
20th May 2005 01:01 UTC
That is what I'm wondering it doesn't see the file for some reason. Where should I put the .nsi script?
MichaelFlya
20th May 2005 01:18 UTC
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-
sethjackson
22nd May 2005 17:22 UTC
I got it working. I had to copy everything to C:\ and run the script from there. :)