473,385 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ActiveXObject("Shell.Application")

Hi there,

I want to use javacript in my ASPX page, using ActiveX (
ActiveXObject("Shell.Application"); ) to call external application.

How I know if the IExplorer settings for ActiveX is enabled ? Any helper
javascript class for do it ?

Any help will be appreciated, and I will be very grateful.

Thanks in advanced, greetings

The code is the following
<SCRIPT type="text/javascript" LANGUAGE="JavaScript">
function executeCommands()
{
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "C:\\program1.exe ";
oShell.ShellExecute(commandtoRun, "/INI=param1.ini",
"", "open", "1");
}
</SCRIPT>

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

May 16 '07 #1
4 14039
this won't work. only safe active/x controls can be created in the browser.

-- bruce (sqlwork.com)

Alhambra Eidos Kiquenet wrote:
Hi there,

I want to use javacript in my ASPX page, using ActiveX (
ActiveXObject("Shell.Application"); ) to call external application.

How I know if the IExplorer settings for ActiveX is enabled ? Any helper
javascript class for do it ?

Any help will be appreciated, and I will be very grateful.

Thanks in advanced, greetings

The code is the following
<SCRIPT type="text/javascript" LANGUAGE="JavaScript">
function executeCommands()
{
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "C:\\program1.exe ";
oShell.ShellExecute(commandtoRun, "/INI=param1.ini",
"", "open", "1");
}
</SCRIPT>
May 16 '07 #2
The web application is intranet, and security about environment is right.

"bruce barker" wrote:
this won't work. only safe active/x controls can be created in the browser.

-- bruce (sqlwork.com)

Alhambra Eidos Kiquenet wrote:
Hi there,

I want to use javacript in my ASPX page, using ActiveX (
ActiveXObject("Shell.Application"); ) to call external application.

How I know if the IExplorer settings for ActiveX is enabled ? Any helper
javascript class for do it ?

Any help will be appreciated, and I will be very grateful.

Thanks in advanced, greetings

The code is the following
<SCRIPT type="text/javascript" LANGUAGE="JavaScript">
function executeCommands()
{
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "C:\\program1.exe ";
oShell.ShellExecute(commandtoRun, "/INI=param1.ini",
"", "open", "1");
}
</SCRIPT>

May 16 '07 #3
"Alhambra Eidos Kiquenet" <Al*******************@discussions.microsoft.com >
wrote in message news:6F**********************************@microsof t.com...
How I know if the IExplorer settings for ActiveX is enabled ? Any helper
javascript class for do it ?
Not as far as I know...

HttpContext.Current.Request.Browser.ActiveXControl s will tell you whether
the browser is "capable" of supporting ActiveX, but not whether this has
been enabled or disabled...
--
http://www.markrae.net

May 16 '07 #4
Why do you need that functionality? The web page will try to open an
application on the end-user machine. Is that your intention? Or you want it
to open the application on the server? This is frequently confused in here.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Alhambra Eidos Kiquenet" <Al*******************@discussions.microsoft.com >
wrote in message news:6F**********************************@microsof t.com...
Hi there,

I want to use javacript in my ASPX page, using ActiveX (
ActiveXObject("Shell.Application"); ) to call external application.

How I know if the IExplorer settings for ActiveX is enabled ? Any helper
javascript class for do it ?

Any help will be appreciated, and I will be very grateful.

Thanks in advanced, greetings

The code is the following
<SCRIPT type="text/javascript" LANGUAGE="JavaScript">
function executeCommands()
{
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "C:\\program1.exe ";
oShell.ShellExecute(commandtoRun, "/INI=param1.ini",
"", "open", "1");
}
</SCRIPT>

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

May 17 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Rosa | last post by:
Hi, I'm trying to clear the TIF on Windows XP programmatically with the below code. This code works fine on any folder but the TIF. For some reason the atEnd() statements always defaults to true...
1
by: Darren Lew | last post by:
Hi there, I have this problem which is really driving me nuts for a couple of days. Glad if any help or suggestion is given Javascript will give me a pop-up error "Access is denied" when i try...
6
by: eXseraph | last post by:
Hi, As we know,in normal asp.net application, a browser need to send a request to a server first to refresh its page. Now I need to design a asp.net application with real-time capability like the...
1
by: drk.kumar | last post by:
I have an implementation issue with WMI scripts to check the user machine processor. The implementation is working fine in the local machine (Windows XP operating system). It is throwing script...
11
by: whisher | last post by:
Hi. Sorry to disturb you but I can't figure out its use in this snippet (Found in many scripts about Ajax) function loadpage(page_request, containerid) { if (page_request.readyState == 4 &&...
5
by: Heofz | last post by:
Hey all, I've been banging my head against a brick wall on this one for the last 12 hours, and the time has come for me to give up and consult the gurus on this one. The below URL contains a...
5
by: Diego Ruiz | last post by:
Hi!! my english is not too good, but i'll try it I have a javascript code: function executeCommands(inputparms) { // Instantiate the Shell object and invoke its execute method. ...
0
by: dim505 | last post by:
hi friends, I'm new to this forum. I have created and build a dll but at first it was getting the error"Automation server can't create object" after a lot of head ache,I got the script...
7
by: ankitoshniwal | last post by:
Hello, I have been having this problem for the whole day today, so even after i googled for the solution i was not able to get one, so i had to post to this forum. I had checked the solutions...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.