Replace folder name

Questions and answers on how to get the most out of FFAStrans
Post Reply
nigelg
Posts: 1
Joined: Fri Sep 04, 2026 9:54 am

Replace folder name

Post by nigelg »

Hi there

New to this and just testing some things..

I'f struggling with replace in the destination and it feels like I'm making a simple error but just can't see it

this is my situation the source is this for example

\\server\folder1\folder2\file.mov

I want the destination to be this

\\server\folderA\folder2\file.mov

so I use replace

$replace(%s_original_path%,\folder1\,\folderA\)

but I always get the specified path is invalid

what am I doing wrong?

FolderA does exist on the server
User avatar
FranceBB
Posts: 307
Joined: Sat Jun 25, 2016 3:43 pm
Contact:

Re: Replace folder name

Post by FranceBB »

uhm... I think you're missing the " " in $replace.

I do something fairly similar - albeit using %s_original_folder% instead - in fact I assign the variable %s_my_recursed_path% to

Code: Select all

%s_my_recursed_path% = $replace("%s_original_folder%", "\Media Ingest\Avisynth_Server1\Node1\x262_in", "")
so that when I re-encode and deliver the file I can simply use the following in the delivery node:

Code: Select all

\\mibcssda001\Media Ingest\OUTPUT Avisynth Server 1\Node1\%s_my_recursed_path%
so that it recreates the path, but ignores what was after the string I replaced with emptiness. :)
Post Reply