Story Details

  • DOS APPEND

    Posted: 2024-12-20 21:04:59

    DOS APPEND, similar to the PATH command, allows you to specify directories where DOS should search for data files, not just executable files. This lets programs access data in various locations without needing full path specifications. It supports both drive letters and network paths, and offers options to search appended directories before the current directory or to treat appended directories as subdirectories of the current one. APPEND also provides commands to display the current appended directories and to remove them. This expands the functionality beyond the simple executable search of PATH, making data access more flexible.

    Summary of Comments ( 56 )
    https://news.ycombinator.com/item?id=42475011

    Hacker News users discuss the DOS APPEND command, primarily focusing on its obscure nature and surprising functionality. Several commenters recall struggling with APPEND's unexpected behavior, particularly its ability to make files appear in directories where they don't physically exist. The discussion highlights the command's similarity to environment variables like PATH and LD_LIBRARY_PATH, with one user pointing out that it effectively extends the file search path for specific programs. Some comments mention the utility of APPEND for accessing data files across drives or directories without hardcoding paths, while others express their preference for more modern solutions. The overall sentiment suggests APPEND was a powerful but complex tool, often misunderstood and potentially problematic.