I have been working on this thing forever!! I am in desperate need of help!!
I currently am running an HTA file called h1.hta and I want to be able to open another HTA called h2.hta that will take in parameters and close the current HTA.
I am using this snippet of code to open the new h2.hta(parameters) within my current h1.hta :
nextpage = h2.hta?trial=2&condition=1
//vbscript
set WshShell = CreateObject("WScript.Shell")
WshShell.Run(nextpage)
When I run this, I get a "File not Found" error. I believe it's because the file in the system is entitled h2.hta and when i send it with the parameters, it does not recognize.
My question is how do I go to another hta file with parameters???
I currently am running an HTA file called h1.hta and I want to be able to open another HTA called h2.hta that will take in parameters and close the current HTA.
I am using this snippet of code to open the new h2.hta(parameters) within my current h1.hta :
nextpage = h2.hta?trial=2&condition=1
//vbscript
set WshShell = CreateObject("WScript.Shell")
WshShell.Run(nextpage)
When I run this, I get a "File not Found" error. I believe it's because the file in the system is entitled h2.hta and when i send it with the parameters, it does not recognize.
My question is how do I go to another hta file with parameters???