Archive: File commmand usage?


File commmand usage?
After playing around and NSIS frying my head on something simple I realise that a space in filepath is causing me grief.

As

File C:\test\mytest\*.*

is ok

where

File C:\test 2\mytest\*.*

fails?

Given that they are valid paths.

Why is this this the case. Using Venis XI UI?


Try putting it in double quotes:

File "C:\test 2\mytest\*.*"

Edit: But then again, this is stuff I dopn't know much about, so if I'm wrong, ignore the fact that I ever existed :D


InstallColors FFFFFF 000000 designates the two different install colours. The two colours are recognised due to the space in between them.
Due to the space that was in your code, the compiler recognised the two parts of the path as two different paths, when you are only allowed one.
Placing quotes around the path "" makes the whole thing one path, or one chunk if you like.

-Stu