DIFFER questions....

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jul 6, 2008
255
4
#64
This thread is getting a little to long and covers more than a few questions and answers.
I think much of what the referenced suggestion for a @REALPATH[] function can be accomplished by:
Code:
echo "%@rtrim[\,%@path[%@search[tcmd.exe]]]"
"D:\tcmd v22"
This should yield a path to an existing file, in the path, without the trailing back slash.
If this isn't what was being described then hopefully Rex will have a better understanding.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,429
40
Albuquerque, NM
prospero.unm.edu
#66
I don't understand what "the intended purpose of the suggested function" is; another implementation of @TRUENAME? But the help text seems to imply that @PATH has something to do with the filesystem. I'm pretty sure that it doesn't. @PATH is just a string-parsing function: strip out any quotes, then delete anything after the last (back)slash. You could use it e.g. to pull a key name out of a fully-qualified registry value name.