silver74 Posted October 23, 2007 Share Posted October 23, 2007 (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?many thanks for your good job Edited October 23, 2007 by silver74 Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted October 24, 2007 Share Posted October 24, 2007 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. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted October 24, 2007 Share Posted October 24, 2007 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. Link to comment Share on other sites More sharing options...
PC_LOAD_LETTER Posted October 24, 2007 Share Posted October 24, 2007 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 Link to comment Share on other sites More sharing options...
silver74 Posted October 24, 2007 Author Share Posted October 24, 2007 Many thanks Kelsenellenelvian the reg file works fine.Thanks for this good job Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted October 24, 2007 Share Posted October 24, 2007 You're very welcome. Link to comment Share on other sites More sharing options...
Blazer140 Posted October 27, 2007 Share Posted October 27, 2007 AUTORUN.INF[AutoRun]shellexecute=wpi.htabye Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now