J
Janice_2k
Hi members and gurus,
I am a newbie in internet security and programming.
The website I developed has a button that will call a
vbscript function to launch an application
(audiorRecorder.exe) that is stored in the user's
computer. The code used is as below:
Dim fso,WshShell
set fso=CreateObject("Scripting.FileSystemObject")
Set WshShell = CreateObject("WScript.Shell")
if fso.FileExists("C:\Program
Files\IEBAudioRecorder\test.txt") then 'Give whole path
to the file here
msgBox("File Exists")
WshShell.Run("C:\Progra~1\IEBAud~1
\AudioRecorder.exe") 'run one.exe program
else
msgbox("file not found, please download it")
WshShell.Run
("http://server:00/library/IEBSoundRecorder.exe") 'downloa
d installer from the server
end if
set fso=nothing
set WshShell=nothing
When the user's internet security is set as default or
medium, the "Initialize and script ActiveX controls not
marked as safe" was set to "disable". If that's the case,
the vbscript function is blocked. If I change
to "prompt", an ActiveX dialog box will pop out
saying "an ActiveX control on this page might be
unsafe....Do you want to allow this interaction? Yes/No".
However, I don't think requesting user to change their
settings is advisable as it will place the user at a high
risk if there are malicious virus or scripts. I was
testing on IE6.
My question is, how can I solve this problem (enable the
vbscript to run and launch the application / skip the
ActiveX pop up) without changing user's internet security
setting?
I would be very glad if someone could share the knowledge
with me. Looking forward to some reply soon.
Thanks in advance,
Janice
I am a newbie in internet security and programming.
The website I developed has a button that will call a
vbscript function to launch an application
(audiorRecorder.exe) that is stored in the user's
computer. The code used is as below:
Dim fso,WshShell
set fso=CreateObject("Scripting.FileSystemObject")
Set WshShell = CreateObject("WScript.Shell")
if fso.FileExists("C:\Program
Files\IEBAudioRecorder\test.txt") then 'Give whole path
to the file here
msgBox("File Exists")
WshShell.Run("C:\Progra~1\IEBAud~1
\AudioRecorder.exe") 'run one.exe program
else
msgbox("file not found, please download it")
WshShell.Run
("http://server:00/library/IEBSoundRecorder.exe") 'downloa
d installer from the server
end if
set fso=nothing
set WshShell=nothing
When the user's internet security is set as default or
medium, the "Initialize and script ActiveX controls not
marked as safe" was set to "disable". If that's the case,
the vbscript function is blocked. If I change
to "prompt", an ActiveX dialog box will pop out
saying "an ActiveX control on this page might be
unsafe....Do you want to allow this interaction? Yes/No".
However, I don't think requesting user to change their
settings is advisable as it will place the user at a high
risk if there are malicious virus or scripts. I was
testing on IE6.
My question is, how can I solve this problem (enable the
vbscript to run and launch the application / skip the
ActiveX pop up) without changing user's internet security
setting?
I would be very glad if someone could share the knowledge
with me. Looking forward to some reply soon.
Thanks in advance,
Janice