SXI Forum

A place to collect usefull tips, tricks and implementation strategies.

You are not logged in.

#1 16-09-2020 10:25:32

MarekR
Member
Registered: 21-02-2019
Posts: 19

Mass test Xlayer configuration using cmd

This is only possible if you are using an xml file signal registry. In this example we will use the name "test.xml" as our trigger file.

  1. Firstly you need to open the windows command prompt.

  2. Next "cd" into the directory that contains your test file. e.g.

    cd SXI/XPress
  3. Once in the correct directory you can use the below command:

    for /L %n in (1,1,10) do copy test.xml XmlOut\Test%n.xml

    This command is used to copy a file into another directory as many times as is specified and rename that file with an incrementing number at the end. In the above example it will copy the file "test.xml" into the XmlOut directory 10 times with an incrementing digit up to 10. e.g. test1.xml, test2.xml, test3.xml, etc.

If you wanted to copy the file into XmlOut 200 times you would change the command as follows:

for /L %n in (1,1,200) do copy test.xml XmlOut\Test%n.xml

Offline

#2 16-09-2020 10:27:33

MarekR
Member
Registered: 21-02-2019
Posts: 19

Re: Mass test Xlayer configuration using cmd

If you want to create a batch file that does the above, all you need to do is add an extra "%" into the batch file. for example:

for /L %%n in (1,1,10) do copy test.xml XmlOut\Test%%n.xml

Offline

Board footer

Powered by FluxBB