automation - scheduling automated file name change -



automation - scheduling automated file name change -

i'm trying schedule task edit names of images. images 123-1234.jpg 123_1234.jpg example.

this have now.

powershell.exe -noexit -command "cd'c:\path\i\want" get-childitem -filter "*.jpg" -recurse | rename-item -newname {$_.name -replace "-", "_" }

appreciate help.

my reasons needing code have 1 software produces images in various extensions way names files 12345-123456.jpg

the other software have imports names 12345_123456.jpg.

this solve me needing 3rd party software if can create automated task alter .jpg in directory needed name format automated import.

powershell.exe -noexit -command get-childitem 'c:\my\file\path\' -filter "*.jpg" -recurse | rename-item -newname {$_.name -replace '-','_' }

im proud of myself first time using powershell. worked fine.

automation scheduled-tasks batch-rename

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -