text: I dont code much in windows, but what little I have seen, system command work just as well there.\nI tried your code in Linux (with ls replaceing dir) and I got the expected result. So the program works for sure.\ntell you what, check if adding a &#92;n at the end of the print line changes things.\nI have a feeling, you are running into buffer related issues.\nThe other thing that you can do is to change the command from dir to something like "mkdir a"