Solved

Launch notepad from browser

Posted on 2001-09-03
8
529 Views
Last Modified: 2007-12-19
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...
0
Comment
Question by:leeayo
8 Comments
 
LVL 5

Expert Comment

by:nilapenn
ID: 6452108
Yes you can do it using wscript activex object.

(eg)

<Script>
var ws=new ActivexObject("Wscript.Shell")
ws.Run("notepad")
</script>
0
 

Accepted Solution

by:
pritam_dewan earned 100 total points
ID: 6452466
If u want to load ur text file in the clients machine,just hv a link to ur text file and browser will load and launch notepad automatically.If u want just to load notepad,then hv a dummy(empty)txt file and hv the link.It will load notepad.Hope this will serve ur requirements.
0
 

Author Comment

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

0
 

Author Comment

by:leeayo
ID: 6452527
this will prompt me for save/open the application, i need to eliminate this...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Expert Comment

by:pritam_dewan
ID: 6452604
It is not download that it would ask for save/open option.It will load the file in the present window of the browser.
0
 

Expert Comment

by:ComTech
ID: 6454024
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
0
 

Author Comment

by:leeayo
ID: 6455316
for pritam_dewan :

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

thanks..
0
 

Author Comment

by:leeayo
ID: 6455420
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...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Query Join 9 61
Syntax Help on SP 4 57
Classic ASP + JS 4 80
document.getElementById not worj with 2 IDs with the same name 10 20
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now