Указываем путь к файлу, который нужно удалить, затем нажимаем ENTER и файл удаляется!!!









Модератор: Andy
Код: Выделить всё
.386
.model flat,stdcall
option casemap:none
include /masm32/include/windows.inc
include /masm32/include/kernel32.inc
includelib /masm32/lib/kernel32.lib
include /masm32/include/user32.inc
includelib /masm32/lib/user32.lib
.data
szNoFileName db "Вы не указали имя файла!!!",0
lpCommandLine dd 0
.code
__start:
invoke GetCommandLine
mov lpCommandLine,eax
mov esi,eax
next:
inc esi
push word ptr [esi]
pop ax
cmp al,20h
jz end_next
cmp al,00h
jz nocmd
jmp next
end_next:
inc esi
invoke DeleteFile,esi
invoke ExitProcess,0
nocmd:
invoke MessageBox,0,addr szNoFileName,0,MB_OK or MB_ICONERROR
invoke ExitProcess,0
end __start