Jump to content

Recommended Posts

Posted (edited)

Hello,

i use in my school wpi to install temporaly some softs on our PC's.This works perfecly,but on 2 PC's i must to confirm everytime if i want start wpi.hta.Can you tell me how i can change this?

erreursr9.jpg

many thanks for your good job

Edited by silver74

Posted

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]
"LowRiskFileTypes"=".hta;"

Save this as a reg file and run it on each machine BEFORE you run WPI on them any more. It really should do the job.

Posted

I use this code to execute a .bat from the login script without displaying that prompt"

Dim WSHShell, oEnv
Set WSHShell=CreateObject("Wscript.Shell")
set oEnv = WSHShell.Environment("PROCESS")
oEnv("SEE_MASK_NOZONECHECKS") = 1
WSHShell.Run("nameoffile", 1, 1)
set WSHShell=nothing
oEnv.Remove("SEE_MASK_NOZONECHECKS")
WScript.Quit

might work for you too

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...