• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Import / Parsing filenames
#4
In the meantime, I wrote this Powershell command that moves and renames all MSP-compatible files to subfolders based on their names:
Code:
dir *.*|where {$_.Name -match '^(.*?)\s*-\s*(.*\.(pdf|jpg|gif|png|bmp|webp|txt|cho|chordpro|crd|chopro|pro|mp3|wav))$'}|%{MD $matches[1] -EA 0;$_|Move -Force -Dest {$matches[1]+"\"+$matches[2]}}

To be used on a Windows PC with the MBP companion.
Reply


Messages In This Thread
Import / Parsing filenames - by Itisme2022 - 04-15-2022, 04:04 AM
RE: Import / Parsing filenames - by Zubersoft - 04-15-2022, 04:42 AM
RE: Import / Parsing filenames - by lvr123 - 11-11-2023, 08:22 PM
RE: Import / Parsing filenames - by lvr123 - 08-29-2022, 11:26 PM
RE: Import / Parsing filenames - by lvr123 - 08-30-2022, 08:13 AM
RE: Import / Parsing filenames - by Zubersoft - 11-12-2023, 05:34 AM



Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.