Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

dpath

From Wikipedia, the free encyclopedia
dpath
DevelopersIBM,Microsoft
Initial releaseDecember 1987; 38 years ago (1987-12)
Operating systemOS/2,Windows
TypeCommand

Incomputing,dpath is an internalcmd.execommand onIBMOS/2[1] andMicrosoftWindows[2][3] that allows using a set of files with theTYPE command and withinput redirection as if they are in the current directory. On Windows it is undocumented and deprecated.dpath differs from theappend command in the way it operates.dpath informs programs what directories they should search in order to findcomputer files. It is then up to the applications to recognize%DPATH%. Using theappend command on the other side, programs are able to find files without recognizing that the command is in effect.

History

[edit]

InDOS theappend command allows programs to open data files in specified directories as if they were in thecurrent directory. SinceWindows NT this is not working as the cmd.exe introduced command processor extensions andappend become redundant. Despite this the executable was and is still available in32-bit versions of Windows. Anyway, the command relied on%DPATH%environment variable, which can be edited with thedpath command. In the modern Windows installations only thedpath command is working despite the help message still is pointing to theappend command.[4][5]

Syntax

[edit]
     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 theappend command help message.

Usage

[edit]

Input redirection:[4]

C:\>echo hello>c:\test\in.txtC:\batch>type c:\test\in.txthelloC:\>dir /a /bC:\>set/pvar=<in.txtThe system cannot find the file specified.C:\>setvarEnvironment variable var not definedC:\>dpath c:\test;C:\>set/pvar=<in.txtC:\>setvarvar=hello

With TYPE command:[5]

C:\>echo hello>c:\test\in.txtC:\batch>type c:\test\in.txthelloC:\>dir /a /bC:\>set/pvar=<in.txtThe system cannot find the file specified.C:\>type in.txthello

See also

[edit]

References

[edit]
  1. ^"JRT Help - OS/2 Commands".[permanent dead link]
  2. ^Hill, Tim (1998).Windows NT Shell Scripting.Macmillan Technical Publishing.ISBN 978-1578700479.
  3. ^"Path - Search path for executable files - Windows CMD - SS64.com".ss64.com. Retrieved2025-10-25.
  4. ^ab"[Undocumented] Input redirection check DPATH (Page 1) / Windows CMD Shell / SS64 Forum".
  5. ^ab"[Undocumented] New info for Type command, Dpath is not deprecated (Page 1) / Meta / SS64 Forum".

Further reading

[edit]

External links

[edit]
Wikibooks has a book on the topic of:Guide to Windows Commands
Ecosystem
Interpreters
Terminals
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=Dpath&oldid=1319724123"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp