MarkMeerten
Programmer
Hello,
I'm writing a little wizzard. while i'm "walking" trough the sequence of the wizzard (html & javascript) i collect several parameters.
These parameters have to be pasted into a textfile wich is the "ini" file of a program.
Writing to a textfile with javascript isn't possible according to me so i want to do the following:
i've got a bat file wich writes the variables to a regkey. Then i read the regkey's and write them into a file with jscript.
say my batfile (mybat.bat) looks like this:
@echo off
add regkey hklm\software\myprog= %1
add regkey hklm\software\myprog\param = %2
i run the batfile in commandline:
mybat.bat var1 var2
This works fine.
BUT...
in my wizzard i try to do the following:
window.location.href = 'mybat.bat var1 var2'
AND THIS REFUSES TO WORK!!!
window.location.href = "mybat.bat' opens the batfile (after prompting)
any ideas how i can pass my variables to my batfile???
Greetz,
Mark
I'm writing a little wizzard. while i'm "walking" trough the sequence of the wizzard (html & javascript) i collect several parameters.
These parameters have to be pasted into a textfile wich is the "ini" file of a program.
Writing to a textfile with javascript isn't possible according to me so i want to do the following:
i've got a bat file wich writes the variables to a regkey. Then i read the regkey's and write them into a file with jscript.
say my batfile (mybat.bat) looks like this:
@echo off
add regkey hklm\software\myprog= %1
add regkey hklm\software\myprog\param = %2
i run the batfile in commandline:
mybat.bat var1 var2
This works fine.
BUT...
in my wizzard i try to do the following:
window.location.href = 'mybat.bat var1 var2'
AND THIS REFUSES TO WORK!!!
window.location.href = "mybat.bat' opens the batfile (after prompting)
any ideas how i can pass my variables to my batfile???
Greetz,
Mark