This is probably an elementary question but I am using basex on windows and trying to invoke the program with -o option, but it keeps choking on the space in the file name. I've tried escaping the name with \ but to no avail. Heres the line:
C:>java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:\Documents and Settings\reedrw\My Documents\audit.xml" "C:/Documents and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq"
The error is: Error: File or directory "and Settings\reedrw\My Documents\audit.xml C:/Document s and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq" not found.
So it looks to me that the -o has stopped at the space and then it hast taken the rest as the full path of the actual query. Just to be clear I have tried it java -cp "C:\Program Files\Basex\basex.jar" org.basex.BaseX -o"C:/Documents and Settings/reedrw/My Documents/audit.xml" "C:/Documents and Settings/reedrw/My Documents/My Dropbox/student_ind_detail_byname_no_ext_var.xq"
as well and that generates the same error
thanks in advance