It looks like you can achieve what you want to do using a for loop, an example of the code is below:
for /F "tokens=*" %%A in (FILENAME.txt) do ACTION
The code above will take each line from the text file FILENAME.txt and process it according to the ACTION line. Using this info we can build a batch file; you can copy and paste the contents below into a file, click File > Save As..., enter DriverIDs.bat
as the file name, select File Type: All Files
, then click Ok to save.
:: Batch file created for SammiD
:: example of for loop to read text file
:: created by whoabuddy 04242014
:: requires DriverIDs text file
for /F "tokens=*" %%A in (DriverIDs.txt) do nul >%%A.file
Now save your text file with driver file names as DriverIDs.txt
(note the upper/lower case!), DriverIDs.bat and DriverIDs.txt need to be in the directory where youwant to create files. When you double-click on DriverIDs.bat it will look through the contents of DriverIDs.txt and create a 0-byte (NUL) file based on each one. I used the following DriverIDs.txt as a test:
Running the batch file from my Windows 8.1 VM creates the files as expected, however it also asked me what program I wanted to use to open them although nothing actually happened. Hopefully this information will help you complete your task!