View Single Post
  #2  
Old December 1st 04, 08:17 PM
Franc Zabkar
external usenet poster
 
Posts: n/a
Default

On Wed, 1 Dec 2004 13:59:17 -0500, "Tom"
put finger to keyboard and
composed:

How do I add a 'p' to the end of all files within a
folder in DOS.


You really need to supply more specific information. For example, when
you say "DOS", do you really mean DOS or a Windows 98 DOS box? Plain
DOS does not understand long filenames, it only knows about filenames
in 8.3 format. Can you give some examples of what you want to do? For
example, how do want to process a filename such as a.b.c.txt?

I also need to be able to remove the 'p' at a later date
with one command string.


Better newsgroups for this type of question would be
comp.os.msdos.misc and alt.msdos.batch.

With certain limitations you could experiment with a command such as
the following:

for %v in (*) do ren "%v" "%vp"


- Franc Zabkar
--
Please remove one 's' from my address when replying by email.