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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -