flat assembler
Message board for the users of flat assembler.
Index
> Windows > HELP ON FASM AND EXEC FUNC |
Author |
|
Betheny 28 Dec 2006, 07:58
Hello People ... i am a new member of this Forum ... and i have a question
I want to write a program which runs all the commands in DOS using the EXEC function. at the moment i want to see what this Piece of coding does ! **************************************** include 'C:\ASSEMBLY_FLAT\INCLUDE\win32axp.inc' section '.data' data readable writable CommandLine0 db "C:\Command.com",0 section '.code' code readable executable proc main invoke WinExec,CommandLine0,SW_SHOW invoke ExitProcess,0 endp .end main **************************************** I can make the EXE file with FASM.EXE But it does not do anything ... ! If someone could explain me what this does and if someone has actully got to run this or not i would be happy to help me. Even though i will check this here but you can also email me at Prince_wont_die@yahoo.com Thanks Beth Ball _________________ SAPA . YAYA |
|||
28 Dec 2006, 07:58 |
|
Filter 28 Dec 2006, 15:42
Betheny wrote: Hello People ... i am a new member of this Forum ... and i have a question Code: format PE CONSOLE 4.0 include 'win32axp.inc' section '.data' data readable writable CommandLine0 db "command.com",0 section '.code' code readable executable proc main invoke WinExec,CommandLine0,SW_SHOW invoke ExitProcess,0 endp .end main This seems to work for me. Maybe command.com wasn't in C:\? It works in a weird way though. |
|||
28 Dec 2006, 15:42 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.