473,230 Members | 4,167 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,230 software developers and data experts.

How to launch program without opening dialog

SK
I am calling an exe thru' href, but when it executes,
I get the message if I want to open the file(exe file).
Is there any way I can suppress this from appearing
and open the program?

Thank you,
SK
Jul 19 '05 #1
17 3807
ljb
Probably not an ASP question...

<script language="vbscript">
function RunFile(TheFile)
CreateObject("WScript.Shell").Run """" & TheFile & """, 0, False"
end function
</script>
<body>
<A href='vbscript:RunFile("\\server\path\program.exe" )'>Run this program</A>
</body>

"SK" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
I am calling an exe thru' href, but when it executes,
I get the message if I want to open the file(exe file).
Is there any way I can suppress this from appearing
and open the program?

Thank you,
SK

Jul 19 '05 #2
No, thank heavens....
It's a HUGE security risk. The user will have to alter their settings to
allow this.
Think about it. I could send a user to a link with a virus.exe on it and
install it automatically... NOT a good thing.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"SK" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
I am calling an exe thru' href, but when it executes,
I get the message if I want to open the file(exe file).
Is there any way I can suppress this from appearing
and open the program?

Thank you,
SK

Jul 19 '05 #3
SK
ljb,

Thanks for the reply!

I am able to run my program, however when its launched,
I get window "Some files can harm your computer....

YOu want to Open/Save/Cancel ...

How to avoid this message from appearing so that it
runs the program.
Next thing is it should open the file using the name
that I pass on. For eg. you want to open an excel
file using excel.

Thanks again for your help!
-SK

-----Original Message-----
Probably not an ASP question...

<script language="vbscript">
function RunFile(TheFile)
CreateObject("WScript.Shell").Run """" & TheFile & """, 0, False" end function
</script>
<body>
<A href='vbscript:RunFile ("\\server\path\program.exe")'>Run this program</A></body>

"SK" <an*******@discussions.microsoft.com> wrote in messagenews:02****************************@phx.gbl...
I am calling an exe thru' href, but when it executes,
I get the message if I want to open the file(exe file).
Is there any way I can suppress this from appearing
and open the program?

Thank you,
SK

.

Jul 19 '05 #4
sk
Curt,

Can set it programmatically, then reset it back?

Thanks much!
-SK
-----Original Message-----
No, thank heavens....
It's a HUGE security risk. The user will have to alter their settings toallow this.
Think about it. I could send a user to a link with a virus.exe on it andinstall it automatically... NOT a good thing.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"SK" <an*******@discussions.microsoft.com> wrote in messagenews:02****************************@phx.gbl...
I am calling an exe thru' href, but when it executes,
I get the message if I want to open the file(exe file).
Is there any way I can suppress this from appearing
and open the program?

Thank you,
SK

.

Jul 19 '05 #5

"SK" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...

How to avoid this message from appearing so that it
runs the program.
This requires a very low security model - 'non-existant'.
As Curt mentions, allowing this to occur is a potentially huge security
risk, even in a trusted environment.
You may just have to live with the Open/Save/Cancel box.
Next thing is it should open the file using the name
that I pass on. For eg. you want to open an excel
file using excel.


If Excel is installed, and the file associations haven't been altered, Excel
will automatically open .xls files - you don't need to specify this.

Jul 19 '05 #6
Link to the .xls file, and the file will open (depending on the user's
settings). Are you trying to link to excel.exe on your server or something?
That wouldn't work. Excel can be executed without being installed but it
needs 7 or 8 dependent files in the startup directory or %path% even for
that to work. If the person has Excel on his machine, the xls file will
open in it (or in the browser with an execl.exe process or the user will be
prompted to download the file). This is all determined by the user's
settings for the .xls filetype.

Ray at work

"SK" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
ljb,

Thanks for the reply!

I am able to run my program, however when its launched,
I get window "Some files can harm your computer....

YOu want to Open/Save/Cancel ...

How to avoid this message from appearing so that it
runs the program.
Next thing is it should open the file using the name
that I pass on. For eg. you want to open an excel
file using excel.

Thanks again for your help!
-SK

-----Original Message-----
Probably not an ASP question...

<script language="vbscript">
function RunFile(TheFile)
CreateObject("WScript.Shell").Run """" & TheFile

& """, 0, False"
end function
</script>
<body>
<A href='vbscript:RunFile

("\\server\path\program.exe")'>Run this program</A>
</body>

"SK" <an*******@discussions.microsoft.com> wrote in

message
news:02****************************@phx.gbl...
I am calling an exe thru' href, but when it executes,
I get the message if I want to open the file(exe file).
Is there any way I can suppress this from appearing
and open the program?

Thank you,
SK

.

Jul 19 '05 #7
SK
Curt,

Or if there is flag I can specify like NOCHECK, NOPROMPT,
SECURITY=OFF.

Thank you,
-SK
-----Original Message-----
No, thank heavens....
It's a HUGE security risk. The user will have to alter their settings toallow this.
Think about it. I could send a user to a link with a virus.exe on it andinstall it automatically... NOT a good thing.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"SK" <an*******@discussions.microsoft.com> wrote in messagenews:02****************************@phx.gbl...
I am calling an exe thru' href, but when it executes,
I get the message if I want to open the file(exe file).
Is there any way I can suppress this from appearing
and open the program?

Thank you,
SK

.

Jul 19 '05 #8
no... again this would be a huge security risk and by default it not
allowed.
If it's programmatically alterable I could easily infect any person who
visit a site.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"sk" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Curt,

Can set it programmatically, then reset it back?

Thanks much!
-SK
-----Original Message-----
No, thank heavens....
It's a HUGE security risk. The user will have to alter

their settings to
allow this.
Think about it. I could send a user to a link with a

virus.exe on it and
install it automatically... NOT a good thing.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"SK" <an*******@discussions.microsoft.com> wrote in

message
news:02****************************@phx.gbl...
I am calling an exe thru' href, but when it executes,
I get the message if I want to open the file(exe file).
Is there any way I can suppress this from appearing
and open the program?

Thank you,
SK

.

Jul 19 '05 #9
The same risk would still exist then, would it not?

''code to change user's settings
''code to execute virus

?

Ray at work

"sk" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Curt,

Can set it programmatically, then reset it back?

Thanks much!
-SK
-----Original Message-----
No, thank heavens....
It's a HUGE security risk. The user will have to alter

their settings to
allow this.
Think about it. I could send a user to a link with a

virus.exe on it and
install it automatically... NOT a good thing.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"SK" <an*******@discussions.microsoft.com> wrote in

message
news:02****************************@phx.gbl...
I am calling an exe thru' href, but when it executes,
I get the message if I want to open the file(exe file).
Is there any way I can suppress this from appearing
and open the program?

Thank you,
SK

.

Jul 19 '05 #10
SK
Ray,

Sorry if I mislead you. The program I am executing is
an .exe file by another vendor. I want to open
a file using this program. I am able to launch it
but I get the dialog box as I mentioned as a result
it doesn't even store the file name.

Users click on the file name to open so it is will
be inconvenient to remember the path and filename.

Thank you,
-SK
-----Original Message-----
Link to the .xls file, and the file will open (depending on the user'ssettings). Are you trying to link to excel.exe on your server or something?That wouldn't work. Excel can be executed without being installed but itneeds 7 or 8 dependent files in the startup directory or %path% even forthat to work. If the person has Excel on his machine, the xls file willopen in it (or in the browser with an execl.exe process or the user will beprompted to download the file). This is all determined by the user'ssettings for the .xls filetype.

Ray at work

"SK" <an*******@discussions.microsoft.com> wrote in messagenews:03****************************@phx.gbl...
ljb,

Thanks for the reply!

I am able to run my program, however when its launched,
I get window "Some files can harm your computer....

YOu want to Open/Save/Cancel ...

How to avoid this message from appearing so that it
runs the program.
Next thing is it should open the file using the name
that I pass on. For eg. you want to open an excel
file using excel.

Thanks again for your help!
-SK

>-----Original Message-----
>Probably not an ASP question...
>
><script language="vbscript">
> function RunFile(TheFile)
> CreateObject("WScript.Shell").Run """" & TheFile

& """, 0, False"
> end function
></script>
><body>
><A href='vbscript:RunFile

("\\server\path\program.exe")'>Run this program</A>
></body>
>
>"SK" <an*******@discussions.microsoft.com> wrote in

message
>news:02****************************@phx.gbl...
>> I am calling an exe thru' href, but when it executes, >> I get the message if I want to open the file(exe file). >> Is there any way I can suppress this from appearing
>> and open the program?
>>
>> Thank you,
>> SK
>
>
>.
>

.

Jul 19 '05 #11
SK
Dan,

Just for testing purpose, can you let me know where
should I specify. I want to ensure that it works as
I want. 'cause I want to make sure that the file
name is being passed over to this app.

Note, I am not using excel, it was just and example
I am using an .exe to open up file.

Thanks for your help!

-SK
-----Original Message-----

"SK" <an*******@discussions.microsoft.com> wrote in messagenews:03****************************@phx.gbl...

How to avoid this message from appearing so that it
runs the program.
This requires a very low security model - 'non-existant'.
As Curt mentions, allowing this to occur is a

potentially huge securityrisk, even in a trusted environment.
You may just have to live with the Open/Save/Cancel box.
Next thing is it should open the file using the name
that I pass on. For eg. you want to open an excel
file using excel.
If Excel is installed, and the file associations haven't

been altered, Excelwill automatically open .xls files - you don't need to specify this.
.

Jul 19 '05 #12
see my other replies, basically NO.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"SK" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
Curt,

Or if there is flag I can specify like NOCHECK, NOPROMPT,
SECURITY=OFF.

Thank you,
-SK
-----Original Message-----
No, thank heavens....
It's a HUGE security risk. The user will have to alter

their settings to
allow this.
Think about it. I could send a user to a link with a

virus.exe on it and
install it automatically... NOT a good thing.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"SK" <an*******@discussions.microsoft.com> wrote in

message
news:02****************************@phx.gbl...
I am calling an exe thru' href, but when it executes,
I get the message if I want to open the file(exe file).
Is there any way I can suppress this from appearing
and open the program?

Thank you,
SK

.

Jul 19 '05 #13

"SK" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Dan,

Just for testing purpose, can you let me know where
should I specify. I want to ensure that it works as
I want. 'cause I want to make sure that the file
name is being passed over to this app.

Note, I am not using excel, it was just and example
I am using an .exe to open up file.

Thanks for your help!


Hi SK,

In Internet Explorer, browse to your site, then click on Tools -> Internet
Options -> Security.

Move the security slider to the lowest option - note the warnings it will
give you.

Click on Apply (Yes if promoted) and then ok - try clicking on your link
again.

If it still doens't work there might be a option under the custom level you
can specify, but TBH I've never actually
done what you're trying.

My instinct would be that if it still doesnt' work with security set to
'Low' then it will never work.

The other possible solution is for you to write your own Browser that your
users use - not sure if that's possible or feasible for you to do,
but then you would have full control over what the application does.

Jul 19 '05 #14
You cannot avoid this dialog.

Ray at work

"SK" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Ray,

Sorry if I mislead you. The program I am executing is
an .exe file by another vendor. I want to open
a file using this program. I am able to launch it
but I get the dialog box as I mentioned as a result
it doesn't even store the file name.

Users click on the file name to open so it is will
be inconvenient to remember the path and filename.

Thank you,
-SK
-----Original Message-----
Link to the .xls file, and the file will open (depending

on the user's
settings). Are you trying to link to excel.exe on your

server or something?
That wouldn't work. Excel can be executed without being

installed but it
needs 7 or 8 dependent files in the startup directory or

%path% even for
that to work. If the person has Excel on his machine,

the xls file will
open in it (or in the browser with an execl.exe process

or the user will be
prompted to download the file). This is all determined

by the user's
settings for the .xls filetype.

Ray at work

"SK" <an*******@discussions.microsoft.com> wrote in

message
news:03****************************@phx.gbl...
ljb,

Thanks for the reply!

I am able to run my program, however when its launched,
I get window "Some files can harm your computer....

YOu want to Open/Save/Cancel ...

How to avoid this message from appearing so that it
runs the program.
Next thing is it should open the file using the name
that I pass on. For eg. you want to open an excel
file using excel.

Thanks again for your help!
-SK
>-----Original Message-----
>Probably not an ASP question...
>
><script language="vbscript">
> function RunFile(TheFile)
> CreateObject("WScript.Shell").Run """" & TheFile
& """, 0, False"
> end function
></script>
><body>
><A href='vbscript:RunFile
("\\server\path\program.exe")'>Run this program</A>
></body>
>
>"SK" <an*******@discussions.microsoft.com> wrote in
message
>news:02****************************@phx.gbl...
>> I am calling an exe thru' href, but when it executes, >> I get the message if I want to open the file(exe file). >> Is there any way I can suppress this from appearing
>> and open the program?
>>
>> Thank you,
>> SK
>
>
>.
>

.

Jul 19 '05 #15
SK
Curt,

Thanks for your time,
-SK
-----Original Message-----
see my other replies, basically NO.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"SK" <an*******@discussions.microsoft.com> wrote in messagenews:00****************************@phx.gbl...
Curt,

Or if there is flag I can specify like NOCHECK, NOPROMPT, SECURITY=OFF.

Thank you,
-SK
>-----Original Message-----
>No, thank heavens....
>It's a HUGE security risk. The user will have to alter

their settings to
>allow this.
>Think about it. I could send a user to a link with a

virus.exe on it and
>install it automatically... NOT a good thing.
>
>--
>Curt Christianson
>Owner/Lead Developer, DF-Software
>www.Darkfalz.com
>
>
>"SK" <an*******@discussions.microsoft.com> wrote in

message
>news:02****************************@phx.gbl...
>> I am calling an exe thru' href, but when it executes, >> I get the message if I want to open the file(exe file). >> Is there any way I can suppress this from appearing
>> and open the program?
>>
>> Thank you,
>> SK
>
>
>.
>

.

Jul 19 '05 #16
SK
Dan,

Thank you for the reply!

Can you send me your email id so that if I find a
workaround I can convey it to you.

Appreciate your help!

Thanks again,
SK
-----Original Message-----

"SK" <an*******@discussions.microsoft.com> wrote in messagenews:03****************************@phx.gbl...
Dan,

Just for testing purpose, can you let me know where
should I specify. I want to ensure that it works as
I want. 'cause I want to make sure that the file
name is being passed over to this app.

Note, I am not using excel, it was just and example
I am using an .exe to open up file.

Thanks for your help!
Hi SK,

In Internet Explorer, browse to your site, then click on

Tools -> InternetOptions -> Security.

Move the security slider to the lowest option - note the warnings it willgive you.

Click on Apply (Yes if promoted) and then ok - try clicking on your linkagain.

If it still doens't work there might be a option under the custom level youcan specify, but TBH I've never actually
done what you're trying.

My instinct would be that if it still doesnt' work with security set to'Low' then it will never work.

The other possible solution is for you to write your own Browser that yourusers use - not sure if that's possible or feasible for you to do,but then you would have full control over what the application does.
.

Jul 19 '05 #17
sk
Curt,

I forgot to add this - why is it not storing the
names of files to open? After I click on open in dialog
box, it should open the file, but it doesn't. Can you
help me on that?

Thank you,
-SK
-----Original Message-----
no... again this would be a huge security risk and by default it notallowed.
If it's programmatically alterable I could easily infect any person whovisit a site.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"sk" <an*******@discussions.microsoft.com> wrote in messagenews:03****************************@phx.gbl...
Curt,

Can set it programmatically, then reset it back?

Thanks much!
-SK
>-----Original Message-----
>No, thank heavens....
>It's a HUGE security risk. The user will have to alter

their settings to
>allow this.
>Think about it. I could send a user to a link with a

virus.exe on it and
>install it automatically... NOT a good thing.
>
>--
>Curt Christianson
>Owner/Lead Developer, DF-Software
>www.Darkfalz.com
>
>
>"SK" <an*******@discussions.microsoft.com> wrote in

message
>news:02****************************@phx.gbl...
>> I am calling an exe thru' href, but when it executes, >> I get the message if I want to open the file(exe file). >> Is there any way I can suppress this from appearing
>> and open the program?
>>
>> Thank you,
>> SK
>
>
>.
>

.

Jul 19 '05 #18

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

Similar topics

21
by: Roy Riddex | last post by:
Hi I'm wanting to create a cd-rom which boots automatically when it's inserted into the computer. What I hope to achieve is for a VB6 program to run automatically when the cd boots up. Can this...
0
by: Jeff Cooper | last post by:
Hi folks, I have a small VB app and I've created a deployment project for it. At the end of installation I would like the user to get a prompt like "Run your new program now? yes/no" -- or...
2
by: Piyush | last post by:
Hi, I need to print stuff on the default printer on the click of a button without opening the print box opening up. Any pointers?
1
by: Lady_A | last post by:
I got an application with an html,css and js UI. The UI basically creates an ActiveX object, which is an unmanaged C++ COM dll which in his turn creates other COM C++ dlls and C# assemblies. At...
13
by: cefrancke | last post by:
I have a custom toolbar for users during any preview of a report launched by a button click on a form. I would like to add a toolbar button to launch the Print Dialog (like 'Ctrl-P' or...
0
by: Benny | last post by:
I have an automated application to manipulate multiple Office documents. When the process is opening the documents, some of them run into security issues, macro errors, and anything else that...
3
by: Scott | last post by:
I wish to have a link on a page that launches a new browser before it loads the target link. The standard _new and _blank include the parent browser's cookies. Is there an alternative method that...
9
by: Tyler | last post by:
Hello All: I am currently working on a project to create an FEM model for school. I was thinking about using wxPython to gather the 12 input variables from the user, then, after pressing the...
0
by: ashishyadav2007 | last post by:
In Setup project for .net I have added a dialog(form) between Start and End dialog(form), but i need to show that dialog(form) only if a registry search condition is successful. If registry search...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.