REM Bat file to creat virtual nuerons using Lneuron with up to 100 sequential random seed by DED REM syntax = input file(prm), output file beginning (swc), number of neurons, number of neurons, 1 REM creates directory of output file name and places files there numbered @ break on @ echo off set b=%5 if %b%==3 goto end if not %3==%4 goto skip if %b%==0 exit :skip if %b%==1 md %2% lneuron -H -T -s %4 %1.prm todos -d -a output.swc copy output.swc .\%2\%2%4.swc echo neuron number %4 done if %b%==1 goto dofor1 if %4==20 goto dofor2 if %4==40 goto dofor3 if %4==60 goto dofor4 if %4==80 goto dofor5 goto end :dofor1 if %b%==1 set b=0 for %%a in (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20) do call %0 %1 %2 %3 %%a %b% goto end :dofor2 for %%a in (21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40) do call %0 %1 %2 %3 %%a %b% goto end :dofor3 for %%a in (41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60) do call %0 %1 %2 %3 %%a %b% goto end :dofor4 for %%a in (61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80) do call %0 %1 %2 %3 %%a %b% got end: dofor5 for %%a in (81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100) do call %0 %1 %2 %3 %%a %b% :end del output.swc