Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: inidelete wholesection
Is there an elegant way with quotes or percents or SOMETHING so I don't have to parse the line first and decide if I need to get the entire section?
IniDeletePvt("sectionName",@WHOLESECTION, "path\whatever.ini")@WHOLESECTION is a built in constant in WinBatch. But sometimes by the time you get to it (if you're doing variable substitution), it has transmogrified itself into a string of "@WHOLESECTION". This is the part that needs to be fixed.
Try:
IniFileName = ItemExtract(1,IniEntry, ",") SectionName = ItemExtract(2,IniEntry, ",") KeyName=ItemExtract(3,IniEntry, ",") Message("Sectioname before",Sectionname) if Sectionname=="@WHOLESECTION" then Sectionname=@WHOLESECTION Message("Sectioname after",Sectionname)
Article ID: W13336
Filename: IniDelete Wholesection.txt
File Created: 1999:04:15:16:53:20
Last Updated: 1999:04:15:16:53:20