Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,978 of 42,547    |
|    Zaidy036 to AlleyCat    |
|    Re: Making Filenames Mirror One Another     |
|    10 Jan 22 17:42:26    |
      XPost: alt.comp.editors.batch, alt.comp.lang.shell.batch.enhancements,       alt.comp.lang.shell.batch.msdos       XPost: alt.comp.lang.shell.batch.winnt, alt.msdos.batch.nt       From: Zaidy036@air.isp.spam              On 1/17/2016 5:20 PM, AlleyCat wrote:       >       > Hello all. I think this will be simple for you batch and script gurus, but       > it's driving me crazy.       >       > Videofile: House.S08E18.Body And Soul.mkv       >       > Subtitle: House.S08E18.HDTV.XviD-LOL.srt       >       > If you please... copy text after third period (or whatever will be before       > the extension in other cases) of videofile and copy it to the srt file, so       > both files are identical other than the extension.       >       > Sample: House.S08E18.Body And Soul.mkv       > House.S08E18.Body And Soul.srt       >       > Not all vid files are in this "format", but I'll work on it from there.       >       > Thank you so very much.       >       Substitution works for you:              SET Title="House.S08E18.Body And Soul.mkv"       SET Title2="%Title:~0,-3%srt        then       Echo Title2        gives       House.S08E18.Body And Soul.srt              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca