From e69edb519a35ecb3fc2d055886820a6bbcb2e48e Mon Sep 17 00:00:00 2001 From: mattbk Date: Wed, 4 Feb 2015 17:31:50 -0600 Subject: [PATCH] Create makehnames.bat --- makehnames.bat | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 makehnames.bat diff --git a/makehnames.bat b/makehnames.bat new file mode 100644 index 0000000..2baa60f --- /dev/null +++ b/makehnames.bat @@ -0,0 +1,20 @@ +:C.2.4.1 Summary +:makehnames.bat produces a file named ”hnames.dat” that lists all files in the working directory with a *.tpr extension. ”hnames.dat” is used by HAngle and HMatch. +:C.2.4.2 Requirements +:makehnames.bat must be located in the same directory as the files to be listed. +:C.2.4.3 User Input +:None required. +:C.2.4.4 Output +:A file named ”hnames.dat,” containing a list of *.tpr files in the working directory, is produced. The source files are not modified. +:C.2.4.5 Listing + +set OLDDIR=%CD% +::Loop through all files with .tpr extension +for %%K in (*.tpr) do call :hnames "%%K" +goto:eof +:hnames +set name=%~n1 +echo %name% >> hnames.dat +120goto:eof +:eof +exit