CODE
// %root%
root=fso.GetParentFolderName(wpipath);
if (root.indexOf(":")==1)
root=root.substr(0,2);
root=fso.GetParentFolderName(wpipath);
if (root.indexOf(":")==1)
root=root.substr(0,2);
But ROOT should be used to get the WPI-parentfolder.
My folder-structure looks like this
CODE
Drive:\any\directory
- WPI (only with contents from the download-package)
- Tools (my additional Tools)
- Applications
- Common
- Multimedia
- Microsoft
- ...
- WPI (only with contents from the download-package)
- Tools (my additional Tools)
- Applications
- Common
- Multimedia
- Microsoft
- ...
And my commands look like this:
CODE
%ROOT%\Applications\Multimedia\...
But with the Bug above my commands does not work. :-(
Only with
CODE
root=fso.GetParentFolderName(wpipath);
all works fine.
Al