Announcement

Collapse
No announcement yet.

Global Rename

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Global Rename

    Ok put your Dos Caps on Guys/Gals

    I have a set of folders holding a mail archive. I want to index this mail archive, but I need the source files to have the extension .txt

    I need a global command that will rename the extension on every file that matches a supplied .ext.

    I have tried the following (4dos/Takecmd) products but can't seem to get it to work

    REN [/A:[[-][+]rhsda] /E /I"text" /N /P /Q /S /T] old_name... new_name
    /Attribute select) /P(rompt)
    /E (no error messages) /Q(uiet)
    /I (match description) /S(ubdirectory)
    /N(othing) /T(otal)

    GLOBAL [/H /I /P /Q] command
    /H(idden directories) /P(rompt)
    /I(gnore exit codes) /Q(uiet)


    The files are in lots of directories off the \mail archive folder

    global /Q ren /Q *.txt *.mml

    produces

    [C:\MAIL ARCHIVE]global /Q ren /Q *.txt *.mml
    4NT: (Sys) The system cannot find the file specified.
    "C:\MAIL ARCHIVE\*.txt"


    Anyone spot where I have gone wrong or have a Windows solution

    Regards
    CJ
    Regards
    Colin

    C.R.E JEWISON

  • #2
    Re: Global Rename

    I Could not find a solutions so I wrote a program in Labview to read the directorys and build up a batch file.

    Job done
    Thanks for looking though.
    Regards
    Colin

    C.R.E JEWISON

    Comment


    • #3
      Re: Global Rename

      Well done!! Didn't take you very long to find a solution. Thanks for posting back with what you did.
      1 1 was a racehorse.
      2 2 was 1 2.
      1 1 1 1 race 1 day,
      2 2 1 1 2

      Comment

      Working...
      X