Jump to content

Weidu commands for mass renaming


deratiseur

Recommended Posts

Hello.

 

I'm looking for a weidu action for copiing all a directory and renaming all the files from MZO2*.* to MGWO*;* (for example)

I need this because my kit mod use many animation from IWD and use the IWD slots. But in IWDEE, i cannot use the sames, so i have to uses the IWD2 slots.

Link to comment

You'd probably have to abuse ACTION_BASH_FOR:

 

 

ACTION_BASH_FOR ~path/to/bams~ ~^MZO2.+\.bam$~ BEGIN

  OUTER_INNER_PATCH_SAVE new "%BASH_FOR_RES%" BEGIN
    REPLACE_TEXTUALLY ~^MZO2~ ~MGWO~
  END
 
  COPY ~%BASH_FOR_FILESPEC%~ ~override/%new%.bam~

END

 

Freehand code, so there may be some syntax errors in there.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...