96 lines
2.6 KiB
HTML
96 lines
2.6 KiB
HTML
<html>
|
|
<head>
|
|
<title>RAGE Samples</title>
|
|
<HTA:APPLICATION ID="RageSamples" APPLICATIONNAME="Rage Samples" ICON="App.ico" SINGLEINSTANCE="yes"/>
|
|
<!-- define the samples object model -->
|
|
<script type="text/javascript" language="javascript" src="sampleobj.js"></script>
|
|
<!-- create and initialize the samples object -->
|
|
<script type="text/javascript" language="javascript" src="samples.js"></script>
|
|
<script type="text/javascript" LANGUAGE="javascript">
|
|
<!--//
|
|
|
|
var currentDirectory = "";
|
|
|
|
function getCurrentDirectory()
|
|
{
|
|
var fso=new ActiveXObject("Scripting.FileSystemObject");
|
|
path = unescape(document.location); //replace %20 with " ", etc.
|
|
path = path.substring(8,path.lastIndexOf("/")+1); //chop off "file:///" and file name
|
|
|
|
return path;
|
|
}
|
|
|
|
function openSolution(args)
|
|
{
|
|
// Instantiate the Shell object and invoke
|
|
//its execute method.
|
|
|
|
var oShell = new ActiveXObject("Shell.Application");
|
|
|
|
// Invoke the execute method.
|
|
oShell.ShellExecute("opensolution.bat", args, currentDirectory, "open", "1");
|
|
}
|
|
|
|
function launchSample(args)
|
|
{
|
|
// Instantiate the Shell object and invoke
|
|
//its execute method.
|
|
|
|
var oShell = new ActiveXObject("Shell.Application");
|
|
|
|
var commandtoRun = "buildorrun.bat";
|
|
|
|
// Invoke the execute method.
|
|
oShell.ShellExecute(commandtoRun, args, currentDirectory, "open", "1");
|
|
}
|
|
|
|
function runTool(args)
|
|
{
|
|
// Instantiate the Shell object and invoke
|
|
//its execute method.
|
|
|
|
var oShell = new ActiveXObject("Shell.Application");
|
|
|
|
var commandtoRun = "runtool.bat";
|
|
|
|
// Invoke the execute method.
|
|
oShell.ShellExecute(commandtoRun, args, currentDirectory, "open", "1");
|
|
}
|
|
|
|
function justRunIt(args)
|
|
{
|
|
// Instantiate the Shell object and invoke
|
|
//its execute method.
|
|
|
|
var oShell = new ActiveXObject("Shell.Application");
|
|
|
|
var commandtoRun = "justrun.bat";
|
|
|
|
// Invoke the execute method.
|
|
oShell.ShellExecute(commandtoRun, args, currentDirectory, "open", "1");
|
|
}
|
|
|
|
function bodyOnLoad()
|
|
{
|
|
// initialize the current directory, this must be done before anything else on the page!
|
|
currentDirectory = getCurrentDirectory();
|
|
|
|
// generate the contents of the page
|
|
sampleHeaders.innerHTML = samples.generateHeaderHTML();
|
|
sampleTables.innerHTML = samples.generateHTML();
|
|
}
|
|
|
|
//-->
|
|
</script>
|
|
</head>
|
|
<body onload="bodyOnLoad(); return true;">
|
|
<h1>RAGE Core Solutions</h1>
|
|
<a name="Top">Table of Contents</a><br/>
|
|
<div id="sampleHeaders"></div><br/>
|
|
<a href="UsersGuide.doc">User Guide</a>
|
|
<br/>
|
|
<br/>
|
|
<div id="sampleTables"></div>
|
|
<a href="UTsamples.hta">List of untested solutions</a>
|
|
</body>
|
|
</html> |