mergenedconns.cmd 548 B

12345678910111213141516171819202122
  1. @echo off
  2. if not "x%1" == "x" echo Please change to the directory you want to convert and run the script there without any command line argument! && goto endlabel
  3. echo.
  4. echo Press ENTER to convert all NED files under the current directory:
  5. cd
  6. echo.
  7. pause
  8. dir /s /b *.ned >nedfiles.lst
  9. echo The following files will be checked/modified:
  10. type nedfiles.lst | more
  11. echo.
  12. echo Press ENTER to start the conversion, or CTRL-C to quit.
  13. pause
  14. perl %~dp0\mergenedconns.pl nedfiles.lst
  15. echo You may safely re-run this script any time you want.
  16. :endlabel