Link to home
Start Free TrialLog in
Avatar of leeayo
leeayo

asked on

Launch notepad from browser

Hi,

Does anyone know how to launch notepad from browser, without prompting you to save or run the exe file ??

Launching the notepad from client side, and not from the web server.

thanks...
Avatar of nilapenn
nilapenn

Yes you can do it using wscript activex object.

(eg)

<Script>
var ws=new ActivexObject("Wscript.Shell")
ws.Run("notepad")
</script>
ASKER CERTIFIED SOLUTION
Avatar of pritam_dewan
pritam_dewan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leeayo

ASKER

But i will have a problem, launching the notepad via a link will prompt me for either save/open the application...

Avatar of leeayo

ASKER

this will prompt me for save/open the application, i need to eliminate this...
It is not download that it would ask for save/open option.It will load the file in the present window of the browser.
leeayo, as per your request in Community Support, I cannot remove points that have been awarded.  What I will do is go to your account and add 100 points.

Then you will need to ask a NEW question in this Topic Area called *Points for nilapenn*  In the comment box, type *For your answer for my questio #20178003*  Then add 100 points, the Expert will see it and comment, when that happens, you will get an email notification, then accpt the answer.

Thanks,
ComTech
Community Suppport
Avatar of leeayo

ASKER

for pritam_dewan :

i need to eliminate the pop up box that ask for save/open option.

thanks..
Avatar of leeayo

ASKER

for nilapenn :

i have successfully launch the notepad from browser by creating active x object.

however, the line
new ActivexObject("Wscript.Shell")
wont be run successfully, if the user has disable downloading activex control in their browser security setting.

do u have any solutions for this ?

thanks...