473,473 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 3813
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.