Hi Sheepy121
First thing - I am running V6.04 and I have no idea whether all of this would apply in Version 5, so try it and see.
Ok, in variables 'Visual cron variables\jobs\active jobs\triggers\last trigger\file\result', the VC variable '{TRIGGER(Active|LastTrigger|File.Result.Folder)}' (using your example) is going to return 'C:\a\peter'.
From what you are saying, I understand you are only interested in the 'peter' folder name? I have achieved a similar thing in the past by using the REGEX function (also available from the Variables dialogue). However, this particular string was designed to extract the second last folder in the path string (in your example - 'a'). I had it defined in a Variable:
{REGEX(Match|{TRIGGER(Active|LastTrigger|File.Result.Folder)}|[^\\]+(?=\\[^\\]+$))}
Unfortunately, I know nothing about REGEX but having a quick mess about with the third party 'Expresso' tool, the following regex seems to work:
\\([^\\]+$)
Whatever variable string you define, you can add it into a VC User variable, or define it directly on your Execute Task 'Arguments' field.
Hope that has given you some ideas...
Cheers
Andy