36 lines
No EOL
637 B
PostScript
36 lines
No EOL
637 B
PostScript
string $docsandsettings = GetEnv("SYSTEMROOT");
|
|
$docsandsettings = "$docsandsettings\\..\\Documents and Settings";
|
|
|
|
@record on;
|
|
`dir * -path "$docsandsettings"`;
|
|
@record off;
|
|
|
|
string $subkeys = GetCmdData('name');
|
|
string $subkey;
|
|
|
|
foreach $subkey ($subkeys)
|
|
{
|
|
if ($subkey == ".")
|
|
{
|
|
continue;
|
|
}
|
|
|
|
if ($subkey == "..")
|
|
{
|
|
continue;
|
|
}
|
|
|
|
if (`script dirwrapper.eps "$docsandsettings\\$subkey\\Application Data\\Microsoft\\wmimgnt.dll"`)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
if (`script dirwrapper.eps "$docsandsettings\\$subkey\\Application Data\\Microsoft\\wmimgnt.exe"`)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
return false; |