Skip to content

Commit

Permalink
Merge pull request #1 from nealei/Beta
Browse files Browse the repository at this point in the history
Improve display and delete temporary files in Trarr program directory
  • Loading branch information
nealei authored Jun 6, 2018
2 parents 37afad7 + f328b46 commit 27f1e44
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Simon.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@
::
:: Usage: Simon [Roadfile (without extension) [Trafficfile(without extension)]] [^> SimonSays.bat]
::
:: By Neale Irons Version 01/03/2018 (CC BY-SA 4.0)
:: By Neale Irons Version 05/06/2018 (CC BY-SA 4.0)

If not exist Trarr.exe echo Error - Must run %0 from Trarr.exe program directory. Exiting. && goto :End
For %%R in ("%1*.ROD") do (
if not exist Trarr.exe echo Error - Must run %0 from Trarr.exe program directory. Exiting. && goto :End
rem.>FAIL
for %%R in ("%1*.ROD") do (
echo echo ::
echo ::*** %%~pdnR
echo copy "%%~pdnR.ROD" ROAD
echo copy "%%~pdnR.MLT" MULTIP
echo copy "%%~pdnR.OBS" OBS
echo echo ::
For %%T in ("%2*.TRF") do (
for %%T in ("%2*.TRF") do (
echo echo ::
echo ::** %%~pdnT
echo copy "%%~pdnT.TRF" TRAF
echo del PASS FAIL
echo TRARR
echo TRARR 2^>nul
echo if exist PASS move /y OUT "%%~pdnR_%%~nT.OUT"
echo if exist FAIL if not exist "%%~pdRBADOUTS"\. md "%%~pdRBADOUTS"
echo if exist FAIL move /y OUT "%%~pdRBADOUTS\%%~nR_%%~nT.OUT"
Expand Down
14 changes: 14 additions & 0 deletions cleanup.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@for %%f in (
CHKOUT
fort.??
MULTIP
neg_spd.txt
OBS
PASS
ROAD
roadmap.gif
RunTRARR.bat
simscreen.txt
TEST
TRAF
) do if exist %%f del %%f

0 comments on commit 27f1e44

Please sign in to comment.