amakrkr Posted July 6, 2010 Posted July 6, 2010 Hello, I was wondering how could I get my script to execute faster. What my script does is simply delete only 1st line in a text file. Script is called from another application in a loop calling it for each line. So if we have a text file 200 lines long script will be called 200 times to delete 1st line, as stupid as it sound i cant make it any other way. Any ideas how to speed it up a bit? Code is simple: #include <File.au3> $File = "c:\log.txt" $line = 1 _FileWriteToLine($file, $line, "", 1)
trancexx Posted July 6, 2010 Posted July 6, 2010 Don't use that wrapper function. Write your own to_the_point function. ♡♡♡ . eMyvnE
amakrkr Posted July 6, 2010 Author Posted July 6, 2010 Hello, thank you for fast replay. I am afraid i dont know how to do that :S Can you elaborate a bit? PS is there a way to disable try icon entirely? I was playing around with Tray functions from help file but didnt find one that would disable it entirely.
trancexx Posted July 6, 2010 Posted July 6, 2010 (edited) Hello,thank you for fast replay.I am afraid i dont know how to do that :SCan you elaborate a bit?Yes, but my elaboration wouldn't solve your problem. You need something else. For example go thru help file an focus on built-in File... functions. PSis there a way to disable try icon entirely?Yes if your definition of disabling actually means not showing.I was playing around with Tray functions from help file but didnt find one that would disable it entirely.That's because there isn't any.Solution is keyword, not function. #NoTrayIcon Edited July 6, 2010 by trancexx ♡♡♡ . eMyvnE
water Posted July 6, 2010 Posted July 6, 2010 Or you could split the functions: The first function (called multiple times) only records the line numbers in a file The second function (called from your application as last statement) reads this file and deletes all lines. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
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