Friday, March 5, 2010

v8.80.0336 - 2010-03-05 10:50

  • + Scripting got a new function.
      Name:   resolvepath
      Action: Converts a relative or portable path to an absolute path.
      Syntax: resolvepath([path], [base=<xypath>\])
        path:   relative or portable path
                if empty or missing the function returns base
        base:   base path; defaults to \
        return: absolute path

      Assuming <xypath> = C:\Program Files\XYplorer:
      ::echo resolvepath();       //C:\Program Files\XYplorer\
      ::echo resolvepath("foo");  //C:\Program Files\XYplorer\foo
      ::echo resolvepath("foo\"); //C:\Program Files\XYplorer\foo\
      ::echo resolvepath("\foo"); //C:\foo
      ::echo resolvepath("\foo\");//C:\foo\
      ::echo resolvepath("\");    //C:\
      ::echo resolvepath("..");   //C:\Program Files
      ::echo resolvepath("?:");   //C:
      ::echo resolvepath("?:\");  //C:\
      ::echo resolvepath("?:\foo\bar\"); //C:\foo\bar\

      ::echo resolvepath("?:", "D:\foo\bar\");  //D:
      ::echo resolvepath("foo", "D:\foo\bar\"); //D:\foo\bar\foo
      ::echo resolvepath("", "D:\foo\bar\");    //D:\foo\bar\
  • + New variable: <xydrive> = XYplorer's drive (unslashed).
    - C:\Program Files\XYplorer\XYplorer.exe
      <xydrive> returns C:
    - \\Server\Share\Program Files\XYplorer\XYplorer.exe
      <xydrive> returns \\Server\Share
  • * Info Panel: Orange button menus now pop at a position so that a second click at the same coordinates will close them. Also added a "Cancel" item to the bottom.