One of the first instructions is:
set basedir=%~dp0\..\..
How can I turn/convert this relative path into an absolute path (with no ".." back parent references)?
Dennis
> set basedir=%~dp0\..\..
> Dennis
*** XSET can handle that. Use its "/Word" and "/Separator" features to
parse the string to include everything except the `\..\..'.
...something as:
ECHO set basedir=%~dp0\..\.. | XSET /SEPARATOR " \" /WORD 2 BASEDIR
SET basedir=%BASEDIR%
One or more links to websites
for the referred program(s)
can be found at:
http://www.chebucto.ca/~ak621/DOS/Websites.html
Richard Bonner
http://www.chebucto.ca/~ak621/DOS/
Richard Bonner (ak...@chebucto.ns.ca) wrote:
> Dennis Halver (ha...@persrec.com) wrote:
(Snip)
> > set basedir=%~dp0\..\..
> > How can I turn/convert this relative path into an absolute path (with no
> > ".." back parent references)?
> > Dennis
> *** XSET can handle that. Use its "/Word" and "/Separator" features to
> parse the string to include everything except the `\..\..'.
> ...something as:
> ECHO set basedir=%~dp0\..\.. | XSET /SEPARATOR " \" /WORD 2 BASEDIR
> SET basedir=%BASEDIR%
> Richard Bonner
*** The second line shuld have read:
SET %BASEDIR%
Richard Bonner
http://www.chebucto.ca/~ak621/DOS/