This is the code that I have been working on that doesn't work. I want it to perform the search and look into a folder called "info" in the same directory.
<html>
<head>
<title>Application Executer</title>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="Application Executer"
WINDOWSTATE="normal">
<script type="text/javascript" language="javascript">
function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("explorer.exe search-ms://query=somethinginapdf", 1, false);
}
</script>
</head>
<body>
<input type="button" value="Windows Search" onclick="RunFile();"/>
</body>
</html>
give it a try with this vbscript :
While it isn't exactly what you've asked for, depending on your needs it may give you a usable result.
Go ahead and look at the code for the format of the
cfg
parameter.