Using filenames with a dash (-) in a bat file
Added by Anonymous about 16 years ago
Legacy ID: #5492808 Legacy Poster: James Lowther (jameslowther)
I am converting a folder of xml files into a folder of html files using a batch file. The Saxon processor does not seem to recognize the dash (-) when it occurs in a filename. For example, when the processor hits the following line in the batch file java -jar saxon.jar -o DIR1/self-regulating_forms.htm DIR2/self-regulating_forms.xml transform.xsl I get a "file does not exist" error. Is there any way to escape the dash(-) character or otherwise avoid this problem? Thanks.
Replies (1)
RE: Using filenames with a dash (-) in a bat file - Added by Anonymous about 16 years ago
Legacy ID: #5496397 Legacy Poster: Michael Kay (mhkay)
This seems highly unlikely, and just to convince myself, I've done a test and it works fine for me. Handling of command line parameters does depend, however, on the command line interpreter (or shell) that you are using. So the next thing you need to do is to provide full details of how you are running this: operating system, Java version, Saxon version, etc. Also the full text of the error message, and some evidence that the file does actually exist. Michael Kay Saxonica
Please register to reply