Benjagan91
08-10-2009, 07:50 PM
Hi,
I don't have my code on me at the moment so i'll explain this the best i can. I have an application which reads instructions from the registry called Scrub.exe
Scrub cleans things i tell it to. It gets it's settings from the registry as already stated. There is a parent program which executes sub, but first sets up the registry by cleaning out any previous settings, setting up the settings again, then runs the app before cleaning out the settings it just added.
Basically:
Remove settings.reg
Add settings.reg
Scrub.exe
Remove settings.reg
Now this has worked fine previously... but now i've modified the parent program to have checkboxes so the user gets to select what settings are added to the registry before scrub runs.
eg:
if checkbox1.value = true then
shell "regedit.exe /s emptyrecyclebin.reg"
end if
But there is like 10 of these... anyways when i tick the checkbox and click run it doesn't register that my checkboxes are ticked... i know this because i did the following:
if checkbox1.value = true then
shell "regedit.exe /s emptyrecyclebin.reg"
msgbox "Test"
end if
I didn't see the message box appear... so it's not seeing the checkbox ticked... Why is this?
Sorry i don't have my code with me right now, i'm at work so i've just tried to explain what i could.
Thanks.
Regards, Benjagan91
I don't have my code on me at the moment so i'll explain this the best i can. I have an application which reads instructions from the registry called Scrub.exe
Scrub cleans things i tell it to. It gets it's settings from the registry as already stated. There is a parent program which executes sub, but first sets up the registry by cleaning out any previous settings, setting up the settings again, then runs the app before cleaning out the settings it just added.
Basically:
Remove settings.reg
Add settings.reg
Scrub.exe
Remove settings.reg
Now this has worked fine previously... but now i've modified the parent program to have checkboxes so the user gets to select what settings are added to the registry before scrub runs.
eg:
if checkbox1.value = true then
shell "regedit.exe /s emptyrecyclebin.reg"
end if
But there is like 10 of these... anyways when i tick the checkbox and click run it doesn't register that my checkboxes are ticked... i know this because i did the following:
if checkbox1.value = true then
shell "regedit.exe /s emptyrecyclebin.reg"
msgbox "Test"
end if
I didn't see the message box appear... so it's not seeing the checkbox ticked... Why is this?
Sorry i don't have my code with me right now, i'm at work so i've just tried to explain what i could.
Thanks.
Regards, Benjagan91