Saturday, January 22, 2011

Drag and Drop for srt2ez in XP

Rather not mess with the command line in Windows?
You can create a .cmd file to handle drag and drop for srt2ez.pl.
Your script can be anywhere*, and so can your srt files.

1.  Use Notepad or any text editor, not a word processor to enter
cd "%~p1"
perl C:\your\path\srt2ez.pl %~nx1
where "your\path" is actually your path to srt2ez.pl
You can copy and paste the full path from Explorer's Address Bar.









2.  Save the file with the .cmd extension.

Now you can drag and drop to the srt2ez.cmd file, and the output file will be in the same directory.
*"anywhere" being  a path without spaces, seems perl doesn't like quotes.