shadowbrokers-exploits/windows/Resources/Ep/Scripts/Capn/getResDir.eps
2017-04-14 11:45:07 +02:00

16 lines
409 B
PostScript

sub getResDirectory(REF string $resPath) {
@record on;
# get resource directory
ifnot (`getdirectory -resources`) {
echo "* Unable to get resources directory";
return false;
}
string $rDir = GetCmdData("dir");
ifnot (defined($rDir[0])) {
echo "* Unable to retrieve resources directory";
return false;
}
$resPath = "$rDir\\Capn";
@record off;
return true;
}