1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need To Create A Folder

Discussion in 'C' started by meyup, Mar 31, 2010.

  1. meyup

    meyup New Member

    Joined:
    Feb 15, 2010
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    0
    I need to create a folder in C using assembler, this is what I have:

    union REGS registros;
    registros.x.dx = Here I have to put the name of the folder;
    //registros.h.ah = 0x57;
    int86(0x33,&registros,&registros);

    How do I put the folder name if the registre dx is of type integer ?
     
  2. pankaj.sea

    pankaj.sea New Member

    Joined:
    Apr 6, 2009
    Messages:
    461
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    Web Developer
    Location:
    Kolkata
    Home Page:
    you have to store into dx pointer to the string with folder name.
    ++++++++
    be sure about proper ds value also, as string pointer is ds:dx, and it is strange to me if you are using int 33h, what is DOS mouse functions, if you mean int 33 (without "h") - it would be looking more realistic: int 33 = int 21h, but then ah=57h means "time stamp", while for mkdir has to be ah=39h (39h=57). watch on the details!
     
  3. pankaj.sea

    pankaj.sea New Member

    Joined:
    Apr 6, 2009
    Messages:
    461
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    Web Developer
    Location:
    Kolkata
    Home Page:

Share This Page