flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Reverend 19 Feb 2006, 01:16
Win32 Reference wrote: BOOL CopyFile( |
|||
![]() |
|
XY2k 19 Feb 2006, 03:15
Thx Reverend, but the code is not complete. You must know, i´m a newbie and can only compile the source-code. Can u please make it finish with this names...look here --> Example:
Copy File C:\programmes\bla\xy.exe to C:\programmes\renamedfile.exe regards, XY2k |
|||
![]() |
|
dead_body 19 Feb 2006, 09:18
Quote: Example: Code: push 0 Call label1 db "C:\programmes\renamedfile.exe ",0 label1: Call label2 db "C:\programmes\bla\xy.exe",0 label2: Call [CopyFile] it must work good, i think. |
|||
![]() |
|
XY2k 19 Feb 2006, 12:50
Sorry it doesn´t work
Code: BOOL CopyFile( LPCTSTR lpExistingFileName, LPCTSTR lpNewFileName, BOOL bFailIfExists ); push 0 Call label1 db "C:\programmes\renamedfile.exe ",0 label1: Call label2 db "C:\programmes\bla\xy.exe",0 label2: Call [CopyFile] by compiling with cmd it say : copy.asm[1] BOOL CopyFile( error invalid expression And when i want only compile the second code: Code: push 0 Call label1 db "C:\programmes\renamedfile.exe ",0 label1: Call label2 db "C:\programmes\bla\xy.exe",0 label2: Call [CopyFile] It say: --> Call [CopyFile] "is undefined symbol" ![]() regards, XY2k |
|||
![]() |
|
UCM 19 Feb 2006, 15:33
you need to do put it in a PE executable.
Code: include 'win32ax.inc' format PE console 4.0 .data label2 db 'C:\blah\blah.blah',0 label1 db 'C:\from.exe',0 .code start: invoke CopyFile, label1, label2, 0 invoke ExitProcess,0 .end start Edit: attached code that will process the command line it goes like this: cp FromFile ToFile
_________________ This calls for... Ultra CRUNCHY Man! Ta da!! *crunch* |
|||||||||||
![]() |
|
XY2k 21 Feb 2006, 09:02
THX UCM...its work
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.