Apologies - just realized it should be: (childitem not children)
get-childitem *.pdb* | rename-item -NewName {$_.BaseName + '.pdb' }
-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Darren
Sent: Wednesday, 22 January 2014 5:53 PM
To: [email protected]
Subject: RE: Renaming Files Named Complexly
You could use powershell
e.g.
get-children *.pdb* | rename-item -NewName {$_.BaseName + '.pdb' }
-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Charles
Hart Enzer, MD, FAACAP
Sent: Wednesday, 22 January 2014 4:40 PM
To: [email protected]
Subject: Renaming Files Named Complexly
****
If Ed's Script were working, I would have labeled the subject:
[NF] Renaming Files Named Complexly
I have about 100 files named such as:
Automobiles.PDB desktop # 2014-01-20 23-17-17
I want to rename all of them for example:
Automobiles.PDB
Using a DOS window, I tried
REN *.PDB* *.PDB
This command resulted in no change.
Thank you.
Charles
--- StripMime Report -- processed MIME parts --- multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.