Tstudent 1 Posted Tuesday at 06:01 PM Hello, i have a directory with about 50 .csv files. I want to delete last row for each of them. Can you suggest a script that automate this action? Is it possible? My best alternative is to do this manually one by one. Thank you Share this post Link to post Share on other sites
Nine 921 Posted Tuesday at 06:12 PM You can get a list of all .csv file using _FileListToArray. For each file, you can dump the content into an array with _FileReadToArray. Delete last row of the array with _ArrayDelete and rewrite the file with _FileWriteFromArray. A few line of code, not very complicated. Try this out and come back with your code if you face an issue. Not much of a signature, but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites
water 2,359 Posted Tuesday at 06:12 PM Did you search the forum? There are a lot of threads discussing this issue. Example: 1 Tstudent reacted to this My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Tstudent 1 Posted Tuesday at 06:39 PM Thanks this exmple helpd me. Found my solution Share this post Link to post Share on other sites