It is possible that your executable gets confiscated by an antivirus program for the duration of scan - try with something simpler like a .txt file first.