thank you for the tips, but the problem still arises. the wierd thing is, i see the shell flash as if the program executed when it was supposed to, but the values in the written file don't change as they should. yet as i said before, when i double click on the .exe program, it runs and changes...