I have encountered a weird phenomenon. I have compiled a front-end program which lets the user select a retrogame emulator (from a list of 13), view its instructions, select from a displayed list of relevant games, and then run the selected game (using the Runtime Process). This is done by saving and running a batfile containing the appropriate command line. About half of these emulators require the game pathway to be placed between double quotes, so my commandline often takes the form-<path> + emulator.exe + space + "\"" +<path> + selected game + "\""
My problem is that the final "\"" refuses to appear in the batfile. I have tried using \0022, (char)34, String.valueOf, Character.toString, and even a 'public static string PutIntoQuotes(string value)' function but I always end up with unclosed quotes which prevents these emulators from loading the game. (I have also used trim() on the selectedgame to make sure there are no trailing spaces.) If I load the batfile and insert the missing quotes it works OK. All very frustrating when the application runs perfectly otherwise. I have the identical program running without hitch in Lazarus Free Pascal. At the moment this a Windows 7 problem. I am now about to run the application in Linux Mint. Has anyone else encountered this weird missing character?