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,795 of 42,547    |
|    Lori Fairhead to T. Ment    |
|    Re: rename files with prefix    |
|    18 Nov 19 09:33:48    |
      From: lorif32768@gmail.com              On Monday, November 18, 2019 at 4:20:15 PM UTC, T. Ment wrote:       > On Mon, 18 Nov 2019 07:57:23 -0800 (PST), Lori Fairhead wrote:       >       > > How would I add a prefix to all the current files       > > in the directory?       >       > The hard way I think.       >       > dir /b > my.bat       >       > edit the file, duplicate the name column, add your change to the second       > column, and REN each line. Easy with a editor that can copy columns and       > fill column blocks.       >              This has a problem that it won't deal with SPACE in the filenames,       I would need to also put quotes around the filenames. In UNIX that       would actually be easy because 'sed' would do all that for you in       a single command.              >       > > And why does the REN command I suggested default to such       > > illogical behaviour?       >       > Group rename an extension is all I know about. Maybe someone knows more.              I don't know much about NTDOS, after they changed Windows from MSDOS       I sort of gravitated into UNIX which has much more powerful commands       and also the commands are standardised (well reasonably).              Am looking for a manual on NTDOS if I was to learn it. I can't be       doing with reading the piecemeal help texts.              Thanks for you input :)              Regards       Lori F              --- 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