Jump to content

how to execute everytime wpi.hta?


Recommended Posts

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
Link to comment
Share on other sites


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

Link to comment
Share on other sites

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...