Kjanar
asked on
Send a path of Exe with parameters in a hyperlink
hi all.
Can pls anyone tell how to send a path of a exe with a parameter in a hyperlink text . i am able to send a path of exe .. but to send a parameter pls can anyone help me .. it is urgent ..
this will be used to send the path of the exe
href="file://C:\project1.e xe"
i need to pass a parameter to a exe
href = "file://c:\project1.exe/ 1
but it is not taking ...
thanks in advance
Jana
Can pls anyone tell how to send a path of a exe with a parameter in a hyperlink text . i am able to send a path of exe .. but to send a parameter pls can anyone help me .. it is urgent ..
this will be used to send the path of the exe
href="file://C:\project1.e
i need to pass a parameter to a exe
href = "file://c:\project1.exe/ 1
but it is not taking ...
thanks in advance
Jana
Ooops you'll need to use double backslashs c:\\project1.exe
ASKER
i need a exe path + parameters to be send in an email .as a hyperlink format..
Yes that would do it, if it works.
<a href="javascript:myfunc()" >Click here to run the program now</a>
<script language="javascript">
function myfunc()
{
window.open("c:\\project1. exe /1");
}
</script>
Failing that, what about creating a bat file or vbs file which contains the parameters, and run that off your link
<a href="javascript:myfunc()"
<script language="javascript">
function myfunc()
{
window.open("c:\\project1.
}
</script>
Failing that, what about creating a bat file or vbs file which contains the parameters, and run that off your link
ASKER
my parameters will change every time.. can u pls explain me how to do it in vbs file or bat format..
Changing tack slightly, here's an option that would work on IE only.
<a href="javascript:runapp()" >Start My Program</a>
<script language="javascript">
function runapp()
{
var ws = new ActiveXObject("WScript.She ll");
ws.Exec("notepad.exe c:\\zx.htm");
}
</script>
I tested this and it seems ok
<a href="javascript:runapp()"
<script language="javascript">
function runapp()
{
var ws = new ActiveXObject("WScript.She
ws.Exec("notepad.exe c:\\zx.htm");
}
</script>
I tested this and it seems ok
ASKER
no i am not able to do it ..
Can u pls tell how and what i have to send a mail..
Can u pls tell how and what i have to send a mail..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i tried the same way . it is not working for me . pls suggest me some alternative..
Sorry I'll have to pass on giving further help due to time constraints, but the above did work for me.
ASKER
iam getting object required as an error when i execute it .. i did the same as u mentioned .. when i click on start my program, - object required error displayed..
i am using the internet explorer as my browser..
i am using the internet explorer as my browser..
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes I don't think we can get away from that unsafe message.
Unless of course you develop your own active x control in VB and get it signed and mark it as safe for scripting. You'd need a vb programmer for that. The user would still get a message saying are you sure you want to install software from kjanar inc or whatever.
Kjanar maybe if you can give us more details about what the program will do we can suggest more options. There are a couple of ways of running the program without any user interaction of you have domain admin rights to their PC.
Unless of course you develop your own active x control in VB and get it signed and mark it as safe for scripting. You'd need a vb programmer for that. The user would still get a message saying are you sure you want to install software from kjanar inc or whatever.
Kjanar maybe if you can give us more details about what the program will do we can suggest more options. There are a couple of ways of running the program without any user interaction of you have domain admin rights to their PC.
I'd like to add that it would be quite unwise to send an email to somebody -- even your best friend -- that contained a link which, when clicked, would run a program on that friend's computer.
The main reason I can think for for wanting to do such a thing is related to performing damaging actions on the recpient's computer.
So please do describe the reason you want to know this.
-- Dan
The main reason I can think for for wanting to do such a thing is related to performing damaging actions on the recpient's computer.
So please do describe the reason you want to know this.
-- Dan
I think that if the need is valid the end user would have no problem clicking okay to the security warning, I do not believe that help should be rendered on this subject matter...
(my 2 cents)
(my 2 cents)
<a href="javascript:myfunc()"
<script language="javascript">
function myfunc()
{
window.open("c:\project1.e
}