Home Forums ASDOC : Easy Publication Quality Tables in Stata asdoc The Current Directory is not writable | Stata

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Akanksha
    Post count: 118

    Hello Sir, Thankyou for creating such a wonderful command. Sir, I have been using asdoc for months now, suddenly it is showing some error related to directory. I tried correcting it but not happening. please help..

    The current directory is not writable!
    The current working directory is C:\WINDOWS\system32
    asdoc cannot write to this directory. As a solution,
    you can change to another directory with command cd
    For example, try creating a folder results in drive C:,
    change to that directory, and retry your asdoc command.
    mkdir c:/results
    cd c:/results
    asdoc reg hhid count
    Attaullah Shah
    Post count: 69

    The message of asdoc is quite detailed and reports a possible solution to the problem. Let me discuss first the circumstance why this happens, and then discuss the solution.

    Why this message is shown
    asdoc first checks whether it can write output to the current directory. By default, Stata sets the installation folder as a working directory. This might be a system folder where write-protection is enabled. If asdoc cannot write to this directory, it will not proceed further and generate the error message.

    What is the solution
    The solution is to create a directory where you can the write-permission. Once the directory is create, you can change to that directory by typeing


    Suppose you created a directory in C folder with the name results, then to change to that directory, type this in Stata
    cd C:/results
    And then use asdoc.

    asdocx is now available
    A more powerful and flexible version of asdoc is now available. I call it asdocx. You may like to check the details here https://fintechprofessor.com/asdocx

    Please do remember to cite asdoc. To cite:

    In-text citation
    Tables were created using asdoc, a Stata program written by Shah (2018).

    Shah, A. (2018). ASDOC: Stata module to create high-quality tables in MS Word from Stata output. Statistical Software Components S458466, Boston College Department of Economics.
    asdocx banner

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.