This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes MS-DOS and javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "MS-DOS and javascript" Watch "MS-DOS and javascript" New topic
Author

MS-DOS and javascript

giri shetty
Greenhorn

Joined: Jan 22, 2004
Posts: 27
Hi,
Does anybody know how to access the MS-DOS command line from a web browser (IE or NetScape) In the sense I would like to execute the batch files from a java script or run the dos commands from a Javascript that sould execute on command line.

Thanks in Advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Do you mean on the client computer?

Of course not. Can you imagine the security implications if this were possible?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
giri shetty
Greenhorn

Joined: Jan 22, 2004
Posts: 27
Thanks.I will look in to the alternate ways to get this done.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

What exactly are you trying to do? If you want to execute code on the client system from a web page you've got very limitied options. You'll need to investigate signed Applets, or perhaps ActiveX controls (if you don't care too much for your visitors).
giri shetty
Greenhorn

Joined: Jan 22, 2004
Posts: 27
You are right. I would like to execute code on the client machine from a web page (on the same machine). Do you have any ideas how to use ActiveX controls.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MS-DOS and javascript
 
Similar Threads
WARN CVS - problem getting CVSROOT/users; using empty email map
Deleting a file from server
Where should file path be?
package
java.io.IOException: CreateProcess: