# AG\_MKDIR > [HTML Version](ag_mkdir.htm) _Reviewed and revised December 2023_ **tab(-10, AG\_MKDIR); dirspec \{, rtnsts\}; chr(127);** [Tab(-10,x) Syntax Notes](ag_xxx_syntax-notes.htm.md) AG\_MKDIR (32) creates a Windows directory relative to the client workstation. This function has both a [subroutine and a print tab implementation](subroutine-print-pairs.htm.md). **Response** None, unless the _rtnsts_ parameter is passed and set to "1", in which case the response will be "0" for success, else the Window system error code. **See Also** • [MX\_MKPATH](mx_mk_rm_path.htm.md)[xs](keyword-types.htm.md), which is the preferred way to access this function.