I have a folder "A" and files "B" inside where both name is A-locked and B-locked.
I would like to use a webreport tag to find "-locked" word from folder/file name and remove it.
Could you please advise!
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
you can create a LiveReport to find the files with that name and then use the WebReport tags to rename the files.
which webreport tag will work effectively for this scenario please?
I had tried this but get unknown tag error
[LL_REPTAG=dataid NODEACTION:RENAME[PATCHANGE:"-Locked":"1":USERLANG /] /]
I would start by breaking that down into the individual steps and perhaps using variables to store state e.g. :
Good Idea ! I was able to breakdown into small steps and get the results.
[LL_REPTAG=DocID NODEINFO:name SETVAR:name /] [LL_REPTAG_!name /] [LL_REPTAG_!name PATCHANGE:'-Locked':'' SETVAR:changed /] [LL_REPTAG_!changed /] [LL_REPTAG_!DocID NODEACTION:RENAME:[LL_REPTAG_!changed /]:USERLANG /]
good to see it worked, if needed you can begin to combine them into a single line if needed.