Link to home
Start Free TrialLog in
Avatar of webdott
webdottFlag for United States of America

asked on

change text in .txt file with vbscript or .bat script with a radio button

i have a .txt file that has some true/false info in it.

i was wondering if there is a vbscript or .bat that allows a popup to change them on check of
the radio button.

example:
c:\client\client-jones.txt

click on script, opens popup with radio buttons as follows:
paid march [ ] true  [ ] false
paid april  [ ] true  [ ] false
paid may  [ ] true  [ ] false

the text file is like this:
 
clent=jones, jimmy
address=
city=
state=
zip=
phone=


paid invoices
march=true
april=true
may=false

Open in new window


it would only change the true/false after each month=?

thanks
Avatar of RobSampson
RobSampson
Flag of Australia image

Hi, with pure vbscript, you won't have the ability to use check boxes, but you could build a HTA that would read the file and display checkboxes for each option.

I can help with that, but I have a question first....is there anything else after the "paid invoices" section?  I would write the HTA to read the file up to the "paid invoices" line, then read the rest of the options until the end of the file, and display them....

Rob.
Avatar of webdott

ASKER

just all the months - examples:
january=true
february=false

etc. for each month thru to december.

thanks for your help!

what is a HTA? is it a script that is edited in notepad?
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of webdott

ASKER

thanks
No problem. The HTML in the HTA I wrote is very basic (it was a quick and dirty build), and doesn't look very nice, but you can add whatever HTML code you like to spruce it up a bit.  It supports CSS as well if you want to use it.

Rob.