Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Open Points: 125 Time: 06:42 - Mar 13, 2008  

mehdialavi57

How can i run and display "notepad.exe" file in a web page with asp.

I can not display notepad file,text file,... in a web page that has designed with ASP . I use the following code:

Dim oScript
Set oScript = Server.CreateObject("WSCRIPT.SHELL")
Call oScript.Run ("cmd.exe /c c:\windows\system32\notepad.exe" , 0, True)

but this code does not work.when run this code notepad window does not open for me.i want have a web page, that when run it, a exe file (for example notepad,calculator,word file,cmd,...) run and open (display) for me. please help me.
thanks.

Categories

Answer Discussion
Tutorials

 

PeterNZ

Date:: Mar 13, 2008

Time:: 20:29

The simple answer is: You can't! Security doesn't allow you to run an executable on the clients machine. Just imagine if it would be possible ...

Cheers

Peter

nidhi

Date:: Mar 18, 2008

Time:: 02:04

If using on IE, then you could perhaps use Launchinie? Read this for more info
http://www.whirlywiryweb.com/q%2Flaunchi...

If you want a kind of editor inside your html, you could use textarea then use some code which saves that entry into a text file (maybe have something that reads and populates it as well)

admin

Date:: Mar 04, 2009

Time:: 10:06

The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.

The Quomon Team

sunrisedb2

Date:: May 24, 2010

Time:: 01:39

function runAppXP() {
var shell = new ActiveXObject("WScript.shell");
shell.run("notepad.exe", 1, true);
shell.Quit;
shell = null;
}

vidhya0288

Date:: Oct 07, 2011

Time:: 04:05

how to run asp files using notepad

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Tutorials cannot be submitted until the Answer Discussion is complete.

Submit answers in the Answer Discussion area

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10354

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es