leighton76
11-24-2002, 09:32 PM
Hi all,
I have the following code
runApp("\"C:\\Program Files\\Adobe\\Photoshop 6.0\\Photoshp.exe\"", 1, 1);
where runApp is:
function runApp(PathToApp, WindowStyle, Block)
{
var oShell = new ActiveXObject("WScript.Shell");
var ret = oShell.run(PathToApp, WindowStyle, Block)
oShell = null;
if(Block) return ret;
return;
}
The script is supposed to open photoshop on the PC when a person clicks on a button. This code works when the script is run on a persons c: drive. However when the script is ran from a network drive ie J: it no longer works, How can this problem be remedied
Tahnks
I have the following code
runApp("\"C:\\Program Files\\Adobe\\Photoshop 6.0\\Photoshp.exe\"", 1, 1);
where runApp is:
function runApp(PathToApp, WindowStyle, Block)
{
var oShell = new ActiveXObject("WScript.Shell");
var ret = oShell.run(PathToApp, WindowStyle, Block)
oShell = null;
if(Block) return ret;
return;
}
The script is supposed to open photoshop on the PC when a person clicks on a button. This code works when the script is run on a persons c: drive. However when the script is ran from a network drive ie J: it no longer works, How can this problem be remedied
Tahnks