First let me make clear : THIS IS NOT VIRUS/TROJAN/HACK , else i wouldnt post it here ... now to the question :

I wrote a little program for school , that edits the AutoExec.bat file ( ie. write in a few lines ) , now i want to send a direct dos commando ( changing an aspect of a file with the "attrib" command ) but it cant seem to write in some letters and symbols , here's my code and what i WANT to happen , and there after what happens :

"Attrib +H c:\windows\desktop\Test.txt"

( ofcourse i made the commands too open the file , and anything else i wanna add goes fine )

here's what it does :

attrib +h c:windowsdesktoptest.txt

it also seems to have problem with the "a" char sometimes.. can some1 tell me what im doing wrong ?

help would be appreciated !