Dpath
In computing, dpath is an internal cmd.exe command on IBM OS/2 and Microsoft Windows that allows using a set of files with the TYPE command and with input redirection as if they are in the current directory. On Windows it is undocumented and deprecated. dpath differs from the append command in the way it operates. dpath informs programs what directories they should search in order to find computer files. It is then up to the applications to recognize %DPATH% . Using the append command on the other side, programs are able to find files without recognizing that the command is in effect.
In computing, dpath is an internal cmd.exe command on IBM OS/2 and Microsoft Windows that allows using a set of files with the TYPE command and with input redirection as if they are in the current directory. On Windows it is undocumented and deprecated. dpath differs from the append command in the way it operates. dpath informs programs what directories they should search in order to find computer files. It is then up to the applications to recognize %DPATH% . Using the append command on the other side, programs are able to find files without recognizing that the command is in effect. ==History== In DOS the append command allows programs to open data files in specified directories as if they were in the current directory. Since Windows NT this is not working as the cmd.exe introduced command processor extensions and append become redundant. Despite this the executable was and is still available in 32-bit versions of Windows. Anyway, the command relied on %DPATH% environment variable, which can be edited with the dpath command. In the modern Windows installations only the dpath command is working despite the help message still is pointing to the append command. ==Syntax== DPATH pathname [;pathname] [;pathname] [;pathname]... DPATH DPATH ; pathname : drive letter and/or folder ; : the command 'DPATH ;' will clear the path Without parameters the will display the current list of the directories. Editing %DPATH% environment variable also can be used. DPATH /? will print the append command help message. ==Usage== Input redirection: C:\>echo hello>c:\test\in.txt C:\batch>type c:\test\in.txt hello C:\>dir /a /b C:\>set /p var= set var Environment variable var not defined C:\>dpath c:\test; C:\>set /p var= set var var=hello With TYPE command: C:\>echo hello>c:\test\in.txt C:\batch>type c:\test\in.txt hello C:\>dir /a /b C:\>set /p var= type in.txt hello ==See also== List of DOS commands ==References== ==Further reading== ==External links== Microsoft TechNet Append article PATH command on SS64.COM
References
- JRT Help - OS/2 Commands · retrieved 2026-11-17 · rev 1319724123
Cite this reference
MLA "JRT Help - OS/2 Commands." 2026-11-17. http://jrttest.com/Help/Os2Cmd.Html#DPATH. Accessed 24 November 2026.
Chicago "JRT Help - OS/2 Commands." 2026-11-17. http://jrttest.com/Help/Os2Cmd.Html#DPATH.
APA encyclopegia.org. (2026). JRT Help - OS/2 Commands. Retrieved November 24, 2026, from http://jrttest.com/Help/Os2Cmd.Html#DPATH
- Hill, Tim (1998). Windows NT Shell Scripting . Macmillan Technical Publishing . ISBN 978-1578700479 . Wikipedia revision 1319724123, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1319724123
Cite this reference
MLA "Hill, Tim (1998). Windows NT Shell Scripting . Macmillan Technical Publishing . ISBN 978-1578700479 . Wikipedia revision 1319724123, retrieved 2026-11-18." Hill, Tim (1998). 2026-11-17. https://archive.org/details/windowsntshellsc0000hill. Accessed 24 November 2026.
Chicago "Hill, Tim (1998). Windows NT Shell Scripting . Macmillan Technical Publishing . ISBN 978-1578700479 . Wikipedia revision 1319724123, retrieved 2026-11-18." Hill, Tim (1998). 2026-11-17. https://archive.org/details/windowsntshellsc0000hill.
APA Hill, Tim (1998). (2026). Hill, Tim (1998). Windows NT Shell Scripting . Macmillan Technical Publishing . ISBN 978-1578700479 . Wikipedia revision 1319724123, retrieved 2026-11-18. Retrieved November 24, 2026, from https://archive.org/details/windowsntshellsc0000hill
- Path - Search path for executable files - Windows CMD - SS64.com · retrieved 2025-10-24 · rev 1319724123
Cite this reference
MLA "Path - Search path for executable files - Windows CMD - SS64.com." "Path - Search path for executable files - Windows CMD - SS64. 2025-10-24. https://ss64.com/nt/path.html#dpath. Accessed 24 November 2026.
Chicago "Path - Search path for executable files - Windows CMD - SS64.com." "Path - Search path for executable files - Windows CMD - SS64. 2025-10-24. https://ss64.com/nt/path.html#dpath.
APA "Path - Search path for executable files - Windows CMD - SS64. (2025). Path - Search path for executable files - Windows CMD - SS64.com. Retrieved November 24, 2026, from https://ss64.com/nt/path.html#dpath
- [Undocumented] Input redirection check DPATH (Page 1) / Windows CMD Shell / SS64 Forum · retrieved 2026-11-17 · rev 1319724123
Cite this reference
MLA "[Undocumented] Input redirection check DPATH (Page 1) / Windows CMD Shell / SS64 Forum." a b "[Undocumented] Input redirection check DPATH (Page 1) / Windows CMD Shell / SS64 Forum". 2026-11-17. http://ss64.org/viewtopic.php?id=1876. Accessed 24 November 2026.
Chicago "[Undocumented] Input redirection check DPATH (Page 1) / Windows CMD Shell / SS64 Forum." a b "[Undocumented] Input redirection check DPATH (Page 1) / Windows CMD Shell / SS64 Forum". 2026-11-17. http://ss64.org/viewtopic.php?id=1876.
APA a b "[Undocumented] Input redirection check DPATH (Page 1) / Windows CMD Shell / SS64 Forum". (2026). [Undocumented] Input redirection check DPATH (Page 1) / Windows CMD Shell / SS64 Forum. Retrieved November 24, 2026, from http://ss64.org/viewtopic.php?id=1876
- [Undocumented] New info for Type command, Dpath is not deprecated (Page 1) / Meta / SS64 Forum · retrieved 2026-11-17 · rev 1319724123
Cite this reference
MLA "[Undocumented] New info for Type command, Dpath is not deprecated (Page 1) / Meta / SS64 Forum." a b "[Undocumented] New info for Type command, Dpath is not deprecated (Page 1) / Meta / SS64 Forum". 2026-11-17. http://ss64.org/viewtopic.php?id=1875. Accessed 24 November 2026.
Chicago "[Undocumented] New info for Type command, Dpath is not deprecated (Page 1) / Meta / SS64 Forum." a b "[Undocumented] New info for Type command, Dpath is not deprecated (Page 1) / Meta / SS64 Forum". 2026-11-17. http://ss64.org/viewtopic.php?id=1875.
APA a b "[Undocumented] New info for Type command, Dpath is not deprecated (Page 1) / Meta / SS64 Forum". (2026). [Undocumented] New info for Type command, Dpath is not deprecated (Page 1) / Meta / SS64 Forum. Retrieved November 24, 2026, from http://ss64.org/viewtopic.php?id=1875
Cite this article
MLA
"Dpath." encyclopegia.org, 2025, https://encyclopegia.org/wiki/dpath. Accessed 24 November 2026.
Chicago
"Dpath." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/dpath.
APA
encyclopegia.org. (2025). Dpath. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/dpath
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON