Thursday, February 3, 2011

Assembly Hidden File

code Segment
Assume Cs : code
    org 100h
start :                                                  
    jmp mulai
    filename db "D:\file.txt",00    ;tempat file tersimpan
   
mulai:
    mov ah,43h               ;43h adalah fungsi untuk mengatur atribut file
    mov al,01                ;01 untuk mengubah atribut dari suatu file
    mov cx,02h               ;02h adalah kode bit untuk atribut hidden file
    mov dx, Offset filename  ;filename sebagai nama filenya
    int 21h                  ;lakukan perubahan atribut file

    int 20h
code Ends
    end start

0 comments:

Post a Comment