I hope I'm just being stupid here.
I'm using a DOS command to get data about a file within a given directory, then using Crop Text to extract a specific part of this data. What I'm trying to do now is take that cropped data and add it to the end of the directory name, encased in square brackets ( [ ] ), giving a result of "<original Directory Name> [<extractedData>]". The problem is that the Rename Folder operation keeps failing, saying one of two errors depending on the code.
If the code looks like the below (double and single quotes give the same outcome), the error says that the Directory doesn't exist, which looking at the file system, is wrong.
However, if the code looks like the below, the error says that it "Can't rename folder" due to there being "Illegal characters in path", which I presume are the spaces in the path to Game.Directory, based off of the fact that the error changes when putting the "Folder to rename" in quotes as shown above.
Any ideas as to how to fix this? Preferably not removing the spaces in Game.Directory, but if it's the only solution then beit the solution