dsubst
Package: WA2L/WinTools 1.2.08
Section: General Commands (1)
Updated: 20 March 2018
Index
Return to Main Contents
NAME
dsubst - substitute a path with a temporary drive letter
SYNOPSIS
WA2LWinTools/bin/dsubst
[
-h
|
-l
|
-V
]
dsubst
-i
[
drive...
]
dsubst
-u
[
drive...
]
dsubst
drive directory
AVAILABILITY
WA2L/WinTools
DESCRIPTION
sometimes on Windows you get the error message 'File name too long'
or 'Path name too long' when trying to access or copy files in
deep file structures.
With
dsubst
a long directory can be substituted with a drive letter.
This results in shortening the path length.
Then the drive letter used to go around the path length restriction.
When installed to the
'Send To'
context menu the substitution can be performed by selecting a directory
and choose the
'subst DIR to drive X:'
menu point.
The selected path will then be substituted with the drive letter (
X:
in this example ) and a new
'Windows Explorer'
is started pointing to the
related drive letter.
OPTIONS
- -h
-
usage message.
- -i [ driveletter... ]
-
install the
dsubst
command as menu point
'subst DIR to driveletter:'
to the
'Send To'
context menu in
'Windows Explorer'
.
The
driveletter
option has to be specified without the colon (:).
To add multiple entries to the
'Send To'
context menu a space separated list of
driveletter(s)
can be specified.
It is recommended to specify at least two letters, allowing you to copy/move
between different paths having extensive length.
If no
driveletter
is specified, the
DRIVE=driveletters
setting from the config file
dsubst.cfg
apply.
- -u [ driveletter... ]
-
uninstall the
dsubst
shortcuts from the
'Send To'
context menu in
'Windows Explorer'.
If no
driveletter
is specified, the
DRIVE=driveletters
setting from the config file
dsubst.cfg
apply.
- -l
-
list the existing
dsubst
shortcuts from the
'Send To'
context menu in
'Windows Explorer'.
- -V
-
print program version.
- driveletter
-
drive letter without colon (:).
- directory
-
a directory to substitute to a
driveletter
.
When installed in the
'Send To'
menu the selected directory in
'Windows Explorer'
is passed to the
dsubst
command.
ENVIRONMENT
-
EXIT STATUS
- 0
-
no error.
- 4
-
usage message displayed.
- 5
-
version message displayed.
FILES
- etc/dsubst.cfg
-
configuration file for
dsubst.
EXAMPLES
-
SEE ALSO
wintoolsintro(1),
dsubst.cfg(4),
config(1m)
NOTES
-
BUGS
-
AUTHOR
dsubst was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2020
Christian Walther
This is free software; see
WA2LWinTools/man/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:32:02 GMT, September 14, 2024