So let me give you the details on exactly what I'm trying to do and see if maybe there's a more elegant solution than how I was trying to approach it. I have a large number of files coming into one location. The files are identified by a series of numbers at the start of the file name.
Currently I have one job setup that will make a variable from the numbers in that file name and create a new folder path, using those digits, to decrypt the file to.
However there's likely going to need to be a second move afterwards, that goes to a path with a different folder structure. Here the folders are setup with the series of numbers, followed by the client name.
I'm looking for a way to be able to take a file named "5678_file_name.txt" and move it to that /5678_clientNameB/ folder, without prior knowledge of what the text in that client name is. I'm going in only knowing that the folder name begins with 5678.