|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Rename files Script
I guess this will take regular expressions.
Would appreciate help to do the following: rename a file that has a GUID appended to the base name. This happened after (arrrhhg!) DFSR blew up and moved thousands of files to the DFSRPrivate\Preexsing folder, and it renames the files with a GUID! I need to rename them and move them back. 99631P1.pdf-{BBFBDD79-5069-49C3-A8D6-C88D557A9113}-v4376300 to 99631P1.pdf Once I've done that I can continue beating up some of MS Support technicians over this daggone DFSR issue :)
Show quote
"NW" <inter***@yahhoo.com> wrote in message Might this work from the command line:news:O0OYOJbGIHA.280@TK2MSFTNGP03.phx.gbl... > I guess this will take regular expressions. > > Would appreciate help to do the following: > > rename a file that has a GUID appended to the base name. This happened > after (arrrhhg!) DFSR blew up and moved thousands of files to the > DFSRPrivate\Preexsing folder, and it renames the files with a GUID! I need > to rename them and move them back. > > 99631P1.pdf-{BBFBDD79-5069-49C3-A8D6-C88D557A9113}-v4376300 > > to > > 99631P1.pdf > > Once I've done that I can continue beating up some of MS Support technicians > over this daggone DFSR issue :) Show quote >ren *.pdf.* *.pdf
Show quote
"McKirahan" <N***@McKirahan.com> wrote in message That's a huge help!news:idmdnfyz2rN027janZ2dnUVZ_hWdnZ2d@comcast.com... > "NW" <inter***@yahhoo.com> wrote in message > news:O0OYOJbGIHA.280@TK2MSFTNGP03.phx.gbl... >> I guess this will take regular expressions. >> >> Would appreciate help to do the following: >> >> rename a file that has a GUID appended to the base name. This happened >> after (arrrhhg!) DFSR blew up and moved thousands of files to the >> DFSRPrivate\Preexsing folder, and it renames the files with a GUID! I > need >> to rename them and move them back. >> >> 99631P1.pdf-{BBFBDD79-5069-49C3-A8D6-C88D557A9113}-v4376300 >> >> to >> >> 99631P1.pdf >> >> Once I've done that I can continue beating up some of MS Support > technicians >> over this daggone DFSR issue :) > > Might this work from the command line: > > >ren *.pdf.* *.pdf > The elusive obvious! Thanks, NW |
|||||||||||||||||||||||