Wow, sharp eyes.. I did miss the difference in case sensitivity. I corrected it and tested but same result.
With this test code I was trying to check if the vbscript button is actually the problem.
I see it works fin on my laptop. But errors out in WinPE, when button is clicked.
My actual code has a button(with required warning message popups) for the user to restore the image to the system. This is part of a bootable USB. Our service people use the USB to restore the image in field.
Till now we had a PCDOS based USB and a UI on command prompt. I am trying to replace it with a GUI using HTA & VBscript because of several reasons (ex: some of our validation logic before restoring uses certain command prompt executibles which donnot work in WinPE).
Is there a way to test it outside the WinPE (on my laptop), so that I don't have to boot with WinPE to test the hta/vbscript.
Also any ideas on why is vbscript giving errors on WinPE, when it runs fine on my laptop.
Note: WAIk version I used is 6001.18000.080118-1840-kb3aikl_en.iso
Thanks,
Basavesh