ur Posted February 13, 2017 Share Posted February 13, 2017 (edited) The below functions are to write data to a configuration or property file and also read them back. BuildLocation:C:\Build BuildExe : setup.exe Release:r9.7 Silent:No InstallPath:default Compare :No MartUpgrade :Yes Bit:64 ERwinUpgrade:No License_File:150416-1952 Navigator (ca.com).lic You can change the character from ":" to "=" or whatever based on your requirement and update the code also accordingly. Property.au3 Edited February 13, 2017 by ur Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted February 13, 2017 Moderators Share Posted February 13, 2017 A couple suggestions. You have a large number of commented lines you may want to remove, if you expect this to be a "finished product" for people to use. Also, the code is almost completely redundant (only 4 lines are different). You could easily add a switch to capture whether it is a read or write operation, and make this a single function rather than two. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
ur Posted February 14, 2017 Author Share Posted February 14, 2017 Thanks @JLogan3o13 for the inputs. It would be more helpful if anyone can suggest any defects in the logic of the code also so that we can fix the logic. Link to comment Share on other sites More sharing options...
spudw2k Posted February 20, 2017 Share Posted February 20, 2017 Logic looks fine, just erroneous and redundant as @JLogan3o13 pointed out. His suggestion to look into consolidating into a common function (or otherwise modularize) would be my suggestion as well. A couple of examples: Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now