Reading from 3 files to create a command...
Posted: 13 Apr 2012 04:26
Hi guys,
In a similar vein to a previous query that i had i've got a situation where i need to read information from 3 files to build a command to be run...
The three files contain pathnames on different lines and i simply need a loop to call the whole line of data from each of the files and echo it out to the following command:
file1.txt = %var1%
file2.txt = %var2%
file3.txt = %var3%
each file has a the same amount of entries in it and i need to be able to loop through every line in them whilst using the data in the following command...
echo shntool split "%var1%" -f "%var2%" -m \-/-*-£-$-=-+-¬-`-¦-;-:-@-'-#-~- -t "%%p - %%t" -d "%DRIVE%\OJW\TEMP\%var3%"
The other problem i have is when trying to echo out the command is that the bit that reads "%%p - %%t" dosnt show up in the echo ...
Any ideas?
In a similar vein to a previous query that i had i've got a situation where i need to read information from 3 files to build a command to be run...
The three files contain pathnames on different lines and i simply need a loop to call the whole line of data from each of the files and echo it out to the following command:
file1.txt = %var1%
file2.txt = %var2%
file3.txt = %var3%
each file has a the same amount of entries in it and i need to be able to loop through every line in them whilst using the data in the following command...
echo shntool split "%var1%" -f "%var2%" -m \-/-*-£-$-=-+-¬-`-¦-;-:-@-'-#-~- -t "%%p - %%t" -d "%DRIVE%\OJW\TEMP\%var3%"
The other problem i have is when trying to echo out the command is that the bit that reads "%%p - %%t" dosnt show up in the echo ...
Any ideas?