AutoHotkey - Find and Replace only some part of multiple Folders in Windows Explorer -


i have multiple folders in windows explorer have part of name same , not. example:

  • first_hello
  • first_how_are_you
  • first_goodbye

and change first part "first" "second" result should this:

  • second_hello
  • second_how_are_you
  • second_goodbye

this simple example , of course if there 3 folders wouldn't ask it, have 30 folders need change part.

any appreciated.

#ifwinactive ahk_class cabinetwclass  f1:: window in comobjcreate("shell.application").windows try fullpath := % window.document.folder.self.path ; msgbox, %fullpath% loop, files, %fullpath%\first_*, d { ; msgbox, %a_loopfilename% stringreplace, newfilename, a_loopfilename, first_, second_ filemovedir, %fullpath%\%a_loopfilename%, %fullpath%\%newfilename%, 1 } return  #ifwinactive 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -