How to delete .cache of the input file and move that file.

Questions and answers on how to get the most out of FFAStrans
Post Reply
JohnB1
Posts: 35
Joined: Thu Feb 15, 2018 12:42 pm

How to delete .cache of the input file and move that file.

Post by JohnB1 »

Hi,

What is the best node to use to delete the source file cache record and move that file to another location after the transcode has finished?

I do not want to delete the source file just the cache so if it is dropped into the watch folder again, it can go through the workflow again.

Also, where would I put the node after the delivery node?

Thank you.
momocampo
Posts: 595
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: How to delete .cache of the input file and move that file.

Post by momocampo »

Hello John,

If I understand well, you want to encode a file, deliver encoded file, move the source file and clean cache. In that case, the same source file in watch folder will encode again.
So, folder monitor>encoder node>delivery node>command executor node (move source file)>command executor node(clean cache).
Use move command to move your source file into another folder(full path) and use --%comspec% /c "del /f /q "%s_cache_record%""-- to clean your cache.
[EDIT:] be aware that this command "del /f /q "%s_cache_record%"" will attempt to delete all files in c:\windows\system32 in case "%s_cache_record%" has no value (when you submit a file manually).

I think it will be ok ;)

Cheers.

Benjamin
JohnB1
Posts: 35
Joined: Thu Feb 15, 2018 12:42 pm

Re: How to delete .cache of the input file and move that file.

Post by JohnB1 »

Hi Benjamin,

Please, can you provide the move command for the source file?

I am new to this feature of FFAStrans.
momocampo
Posts: 595
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: How to delete .cache of the input file and move that file.

Post by momocampo »

Ok John, no problem:
here it is :

%comspec% /c "move /y "%s_original_full%" "path where move file""

Let try ;)

B.
Post Reply