PDA

View Full Version : Starting programs locally from web page


Tanker
04-30-2003, 06:39 PM
Greetings.

I'm using the following code to start up certain applications on my machine rather than starting them manually. This works fine on my XP machine at home, but not on my NT box at work. Does anyone know of a way to get it to work on both boxes?

In the morning I have to bring up 5 web pages and 3 applications, I thought it would be nice to be able to start 1 web page locally that brought everything up for me and placed the browser windows where im used to them.

Thanks in advance.


fso = new ActiveXObject("Scripting.FileSystemObject");

function RunProgram(Program_Path) {
Default_Value = Program_Path.match(new RegExp("Default", "i"))
if (Default_Value) {} else {new ActiveXObject("WScript.Shell").Run(Program_Path,3,false)}
}

Roy Sinclair
04-30-2003, 06:44 PM
The windows scripting host software may not be installed on the NT system. If you have an IT department responsible for your system talk to them about gettin it installed. If you are stand-alone on your support then you can get it and install it from the MS web site here. (http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28001169)