I do a program like this
    szSystemPath  db  MAX_PATH dup (?)
    szFileName      db  'SexyPink',0
    Invoke GetSystemDirectoryPath ,Addr szSystemPath ,MAX_PATH
    Lea Ebx, Offset szSystemPath
    Lea Ebx,
    Mov Byte Ptr , '\'
    Inc Ebx
    Lea Esi Offset szFileName
    Mov Edi Ebx 
    Mov Ecx SizeOf szFileName
    Cld       
    Rep Movsb
but when i do ml /c /coff try.asm
follow instruction get error
    Mov Edi Ebx 
    Mov Ecx SizeOf szFileName
    Cld 
ml note:error A2008: syntax error : in instruction

Posted on 2005-09-13 11:35:58 by SexyPink
You are missing commas... or is the compile error due to the usage of sizeof? I am not very sure.
Posted on 2005-09-13 12:41:03 by roticv
SexyPink,

It might be easier if you learn/used higher level usage and then work your way down to moving bytes around.

invoke lstrcat, addr szSystemPath, addr szBackSlash
invoke lstrcat, addr szSystemPath, addr szFileName


Regards,  P1  8)
Posted on 2005-09-13 13:13:10 by Pone