Search found 6 matches

by cyclist_sg
05 Aug 2016 08:04
Forum: DOS Batch Forum
Topic: Batch file that allows XML choice selection
Replies: 14
Views: 11586

Re: Batch file that allows XML choice selection

The default prefs.xml does not have this line. @if (@a)==(@b) @end /* Batch portion: @echo off &setlocal set "xmlfile=test.xml" choice /c wrl /n /m "Choose [W]atopia, [R]ichmond, or [L]ondon: " cscript //nologo //e:jscript "%~fs0" "%xmlfile%" "%error...
by cyclist_sg
04 Aug 2016 21:56
Forum: DOS Batch Forum
Topic: Batch file that allows XML choice selection
Replies: 14
Views: 11586

Re: Batch file that allows XML choice selection

What is required ia a batch file that will allow map choosing when executed. The maps are identified by nos. 1, 2 and 3. So when any one of these are keypressed, the script shld have added <WORLD>1/2/3</WORLD>line. The default prefs.xml does not have this line. Do you require this added to the pref...
by cyclist_sg
04 Aug 2016 17:52
Forum: DOS Batch Forum
Topic: Batch file that allows XML choice selection
Replies: 14
Views: 11586

Re: Batch file that allows XML choice selection

This program is subjected to ongoing updates so best avoid cloning xml file. Preferably an edit on the moment selection is made to the xml file will be more dynamic and up to date. Many thanks.... Pat You misunderstood my question. I don't know what you mean by cloning, and my post was only referri...
by cyclist_sg
04 Aug 2016 01:06
Forum: DOS Batch Forum
Topic: Batch file that allows XML choice selection
Replies: 14
Views: 11586

Re: Batch file that allows XML choice selection

A single batch file should be more efficient way i think.

Rgds... Pat
by cyclist_sg
04 Aug 2016 00:56
Forum: DOS Batch Forum
Topic: Batch file that allows XML choice selection
Replies: 14
Views: 11586

Re: Batch file that allows XML choice selection

This program is subjected to ongoing updates so best avoid cloning xml file. Preferably an edit on the moment selection is made to the xml file will be more dynamic and up to date.

Many thanks.... Pat
by cyclist_sg
03 Aug 2016 16:34
Forum: DOS Batch Forum
Topic: Batch file that allows XML choice selection
Replies: 14
Views: 11586

Batch file that allows XML choice selection

Hi, I have a program called ZWIFT that runs on XML preferences and there are 3 map options which I hope can select each time I run the program. I wish to be able to select the mapping each time I run: To ride Watopia, add: <WORLD>1</WORLD> To ride Richmond, add: <WORLD>2</WORLD> To ride London, add:...