Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

File management commands?

$
0
0
  • I’ve found this one to replace parts of filenames including periods.

dir | Rename-Item -NewName { $.BaseName.replace(“.”,” “) + $.Extension }

  • However, it won’t work with parenthesis and brackets. How do I remove those too as well as other symbols?

Example for Removing Parenthesis and Brackets (1080p) [Uploader].mp4

  • Command for making every letter in a filename uppercase?

example file name.jpeg to Example File Name.jpeg

  • Possible to remove brackets and everything in them from a bunch of files even if what’s in the brackets isn’t the same?

Rocket Power – 1×01 – new qquid on the block ~ down the drain [SLiME]

Rocket Power – 1×07 – powergirl surfers ~ twisted cinema [RmL]

Rocket Power – 1×18 – the aloha kid ~ otto mobile [Unknown Encoder]

Any other commands for cleaning up file names?

submitted by /u/IgnoreMyName
[link] [comments]

The post File management commands? appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles