Adding commands to the command line
April 24, 2010 3:45 AM Subscribe
How do I create a shortcut to a command prompt window that will start a programme, with specific variables within the command prompt window?
posted by Solomon to Computers & Internet (7 answers total)
I'm using ffmpeg to convert some .flv files to .mp4 files. The command I'm using is:
ffmpeg.exe -vcodec copy -acodec copy -i INPUT.flv OUTPUT.mp4
I have a shortcut (.lnk file) in the Start Menu that will load a command prompt window, which is this:
Target: C:\WINDOWS\system32\cmd.exe /k ffmpeg.exe
Start in: C:\Program Files\ffmpeg\bin
Everything works great, apart from the fact that I have to type the whole command into the command prompt window every time. I want a shortcut that will load the command prompt window (like it already does) with the relevant command already inputted, so that when the window loads, it looks like this:
C:\Program Files\ffmpeg\bin>ffmpeg.exe -vcodec copy -acodec copy -i
This is on XP.