maverick1200 Posted April 6, 2005 Posted April 6, 2005 Hi guys! I really need your help ! I've just reinstall my computer using my brand new unnatended XP cd but I've a problem :sWhen WPI launches for the first times, he ask me to choose a program to open WPI.hta (Before I reinstall, these was made automaticly) So ok I choose %systemDrive%\windows\system32\mshta.exe to run it and everything is fine, th e program lauches and work perfectly.But I'd like to auto make the file type association so I've written a little batch file wich is called before callaing the WPI.hta. REMREM Association de l'extension .HTA avec mshta.exeREM assoc .hta hta_auto_fileftype hta_auto_file="%SystemRoot%\System32\mshta.exe" "%1"Everithnig seems ok but when I check the entry stored typing ftype hta_auto_fileit answers me :hta_auto_file="D:\WINDOWS\System32\mshta.exe" ""the %1 has dissapeard and so I can't open my file because %1 is the name of the opened file :sSomeone can help me ???Thanks a lot !!Geoffrey
Stalkie Posted April 9, 2005 Posted April 9, 2005 HiTry with %%1 instead of %1Alternatively, you can change the call til wpi.hta to something like this:mshta.exe wpi.htaThat should work, since C:\Windows\system32 should be in your PATH.
cparker Posted April 12, 2005 Posted April 12, 2005 HiI had the same problem once XP Service Pack 2 (sp2) was integrated, I got around it by altering the wpi.cmd file as follows; REM Start WPI and wait for its endassoc .hta=hta_auto_fileftype hta_auto_file="%SystemRoot%\System32\mshta.exe" "%%1"start /wait WPI.htaREM call any cleanup code here, or after this script.exit:endThis then works fine, seems that something with sp2 changes associations, as Internet Explorer doesnt automatically assign itself as the default browser either!Cheers
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