Microsoft
Software
Hardware
Network
Question : Edit filename variable in Batch script
I am reencoding a massive bunch of AVI's to MP4 using Handbrake CLI:
*** script start
for %%i in (*.avi) do (
"D:\reencode\handbrake\Han
dBrakeCLI.
exe" -i "%%i" -t 1 -c 1 -o "%%~ni.mp4" -f mp4 -X 480 -e x264 -q 0.59 -a 1 -E faac -B 128 -R 48 -6 dpl2 -D 1 -x level=30:cabac=0:ref=2:mix
ed-refs=1:
analyse=al
l:me=umh:n
o-fast-psk
ip=1 -v
move "%%i" "D:\reencode\AVI\finished"
)
*** script end
the "move" command will execute as:
move video001.avi "D:\reencode\finished"
How can I add a second "move" command so "%%i" is modified from "video001.avi" to "video001.mp4", so the reencoded file is also moved?
Answer : Edit filename variable in Batch script
move "%%~ni.mp4" "D:\reencode\AVI\finished"
Random Solutions
NetBIOS
WinRAR & xp_cmdshell
CNAME resource reocrds for Site is incorrect
How can I add this Excel Sheet to Access (form) and make it work like Excel Sheet?
Microsoft Dynamics CRM 4.0
HELP, I fallen on a 'Runtime Error 3134 Syntax error in INSERT INTO statement' and i can't get up!
Access, non-print a null field.
Moving public folders from Exchange 2007 to Exchange 2003 - Different Organisations
Convert Access 95/97 to Access 2000 MDE
VBA Variable as DLookup Criteria