Before posting, and to avoid disappointment, please read the following:

  • This forum is not for 2BrightSparks to provide technical support. It's primarily for users to help other users. Do not expect 2BrightSparks to answer any question posted to this forum.
  • If you find a bug in any of our software, please submit a support ticket. It does not matter if you are using our freeware, a beta version or you haven't yet purchased the software. We want to know about any and all bugs so we can fix them as soon as possible. We usually need more information and details from you to reproduce bugs and that is better done via a support ticket and not this forum.

Possible to strip the first 7 characters from a filename when moving?

For technical support visit https://support.2brightsparks.com/
Post Reply
marklyn
Newbie
Newbie
Posts: 3
Joined: Wed Jul 02, 2008 10:49 pm

Possible to strip the first 7 characters from a filename when moving?

Post by marklyn »

I have a folder where certain files are "dropped" occasionally and I have syncbackpro reguarly check and then move these files to a plex media folder; however the native names of these files start with 6 arbitrary numbers followed by an underscore and the rest of the real file name.
IE: 123456_So_Help_Me_Todd_ S02E03.mkv
Is there a way to strip off the first 7 characters when moving this file?
I just want the moved result file to be So_Help_Me_Todd_S02E03.mkv
dorisguiterrez
Newbie
Newbie
Posts: 6
Joined: Wed Aug 23, 2023 7:42 am

Re: Possible to strip the first 7 characters from a filename when moving?

Post by dorisguiterrez »

Yes, you can configure SyncBackPro to strip off the first 7 characters of the file name when moving files. Here are the steps:
  • In your profile, select the "Move or rename files" action for the filter that matches those files.
  • Click the "Rename Files" button.
  • In the "Rename files to" section, check the "Rename using variables" box.
  • For the "New file name", use this format:
{%SourceFileBase%}_{%SourceFileName%}
  • Click "Insert Variable" and select "SourceFileBase" from the list.
  • Click "Insert Variable" again and select "SourceFileName"
  • This will take the file base (everything before the last dot) and file name/extension, without the first 7 characters.
  • Click OK to save the rename settings.
Now when those files are moved, it will strip off the first 7 characters and just use the Base and File name parts in the new target file name.
marklyn
Newbie
Newbie
Posts: 3
Joined: Wed Jul 02, 2008 10:49 pm

Re: Possible to strip the first 7 characters from a filename when moving?

Post by marklyn »

Thanks for your reply, but, I've got the profile open and cannot see the "Move or rename files" submenu anywhere. Here is a screen shot of the profile, hope that helps.
Screenshot 2023-08-23 081554.png
Screenshot 2023-08-23 081554.png (93.66 KiB) Viewed 5343 times
Post Reply