Hi
If anyone still remembers DOS?
I can't save the echo command with two variables. How does it properly save?
echo %audio%t%%
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 8 of 8
Thread
-
-
-
Thanks for the reply.
Originally Posted by Bjs
Code:set w=0 set z=0 set /p srt= < %file%_format_audio.txt set str=%str:,/=,und/% echo.%srt%> %file%_format_audio_mod.txt del %file%_format_audio.txt :label2 set /a id1=1+%w% set /a id2=2+%w% set /a id3=3+%w% set /a id4=4+%w% set /a t=1+%z% echo %id1% %id2% %id3% %id4% for /f "tokens=%id1%,%id2%,%id3%,%id4% delims=,/" %%a in (%file%_format_audio_mod.txt) do ( echo %%a %%b %%c %%d if [%%b]==[AAC] set codec2=aac if [%%b]==[AC-3] set codec2=ac3 set /a m=%%a-1 set id=%%a set lang=%%c set ida=%%d ) ffmpeg -y -loglevel warning -i "%file%" -f %codec2% -map 0:%m% -c:a copy -vn -sn -dn -map_chapters -1 -map_metadata -1 %file%%t%.%codec2% if [%codec2%]==[aac] set audio%t%=-add "%file%%t%.%codec2%:sbr:lang=%lang%:trackID=%id%:name=(Audio %t%)" set audio%t%=-add "%file%%t%.%codec2%:lang=%lang%:trackID=%id%:name=(Audio %t%)" if [%codec2%]==[] set audio%t%="" echo %audio%t%% set w=3 set z=1 if [%ida%]==[%id4%] goto label2
Last edited by Jamaika; 12th May 2015 at 10:54.
-
not sure what you want to do, if you want to print variable "audio" and "t" it should be:
echo %audio%%t%
or with some space between those:
echo %audio% %t% -
I want to be able to display the values of "audio1" to "audio100", where %t% is the second value from 1 to 100.
I don't want two separate values.
Originally Posted by _Al_ -
CALL echo %%audio%t%%%
or
SetLocal EnableDelayedExapansion
echo !audio%t%!
EndLocal
Similar Threads
-
DOS batch command variable
By sambat in forum ProgrammingReplies: 6Last Post: 24th Sep 2014, 13:14 -
using IF in a dos batch procedure
By marcorocchini in forum Newbie / General discussionsReplies: 5Last Post: 23rd Sep 2014, 00:18 -
Subtitle Edit command line problem,..
By Selur in forum SubtitleReplies: 2Last Post: 26th Oct 2012, 16:14 -
windows 7 command line problem with the % symbol
By sonic12345 in forum Video ConversionReplies: 1Last Post: 28th Jun 2011, 14:45 -
No MS-DOS sound in Current set-up
By Frank-0-Video in forum ComputerReplies: 13Last Post: 9th Jun 2011, 08:16