On 09/17/2012 05:03 PM, Madlik, Monika (LNG-VIE) wrote: > > I have a problem with my XML-Mind-Editor (version 3.6.0).
v3.6 is several years old and is not supported by us anymore. Latest release is v5.4. > I want to start XML-Files via double click. I linked my XML-Files with the > xxe.bat. Within the xxe.bat I changed the path of the putrefs to the > following string: > > Start javaw –Xss1m –DXXE_GUI=“%XXE_GUI%“ > –DXXE_ADDON_PATH=“%XXE_ADDON_PATH%“ > –DXXE_USER_PREFERENCES=“%XXE_USER_PREFERENCES%“ –classpath „%cp%“ > com.xmlmind.xmleditapp.start.Start %* -putrefs > C:\Programme\XMLMind_v36\addon\config\preferences.properties > > When I start the xxe.bat via double click, all is OK – the program > starts and there are no error messages. > > But when I start an XML-File via double click, I get the following messages: > > Kann Datei > „C:\Programme\XMLMind_v36\addon\config\preferences.properties“ nicht > öffnen: Parsing-Fehler in > „file:/C:/Programme/XMLMind_v36/addon/config/preferences.properties“, > Zeile 1, Spalte 0: syntax error > > „-putrefs“ > > Ist keine URL oder ein Dateiname. > > Gebrauch: > > xxe [-putprefs property_file]* [-putpref key value]* [-delpref key]* > [ULR_or_file]* | -last > > Do you know what’s wrong with that? Please note that your question is absolutely not related to our product. Your question is related to writing .bat files. As shown in the above error message (notice that "[URL_or_file]*" is after the "-putprefs property_file" option), %* must be the very last argument of the above command. In other words, please swap: %* and: -putrefs C:\Programme\XMLMind_v36\addon\config\preferences.properties Your mistake suffices to explain why it works when you double-click on xxe.bat (%* expands to nothing at all, hence does not cause any problem) and not when you double-click on an XML file (%* expands to a filename which precedes the "-putprefs" option). -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

