Can someone please tell me why and how I can work around: When I write to a file it places a special character at the begining of the first line? Now you may be asking "What are you talking about ? I write to files all the time and I don't see an special characters." Well when you open a file in notepad you don't see it, when you go to a command prompt and do a type <filename> you don't see it but if you do an edit <filename> from command prompt there it is. I wouldn't normally care about it, this is the first time something like this has come up. What i am doing is in my script I am writing a list of commands to the file then running plink to execute the list of commands from the command file. If you want to look at my code I will be more than happy to post it.