Change of pdf files name in powershell -


this 3rd time facing situation. need change name of fiels, around 10,000. thes pdf files name 101sg1058_sh2_r2f2.pdf. want delete first 3 number in case 101. folder having these files located @ c:\all

so tried look, web answers, good. never ever used powershell or command prompt. can tells me, how it. in same way if need add 2 letter in name somehere, how can done. way using win 7.

regards

nadeem

you can use -replace operator regular expression p[attern remove digits start of file name:

get-childitem -path c:\all -filter *.pdf |  rename-item -newname {$_.name -replace '^\d+'} 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -