October 23, 200718 yr 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?many thanks for your good job Edited October 23, 200718 yr by silver74
October 24, 200718 yr OK I assume from the pic that it is XP right?You need to manually add .hta files to the allowed list of files to run let me get a reg file that "Should" do the trick for you.
October 24, 200718 yr 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.
October 24, 200718 yr I use this code to execute a .bat from the login script without displaying that prompt"Dim WSHShell, oEnvSet WSHShell=CreateObject("Wscript.Shell")set oEnv = WSHShell.Environment("PROCESS")oEnv("SEE_MASK_NOZONECHECKS") = 1WSHShell.Run("nameoffile", 1, 1)set WSHShell=nothingoEnv.Remove("SEE_MASK_NOZONECHECKS")WScript.Quitmight work for you too
October 24, 200718 yr Author Many thanks Kelsenellenelvian the reg file works fine.Thanks for this good job
Create an account or sign in to comment