Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8988003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:55:27+00:00 2026-06-15T21:55:27+00:00

I am working with 3 log files in notepad++. Is there a way the

  • 0

I am working with 3 log files in notepad++.
Is there a way the clear the contents of all three files at once in one or two clicks?

I’ve searched plugins but couldn’t find anything. A macro, from what i’ve tried, records the activity in the active file, so if i change files it won’t record that.

A solution would help me alot, thanks.

EDIT: Also it would be great to save the files once they are cleared.
Isn’t there something like batch commands to do in notepad++.
(by the way i also tried batch commands to clear the files but then i get that the file is being used by the system, so i concluded that it’s only possible from the text editor)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:55:29+00:00Added an answer on June 15, 2026 at 9:55 pm

    Record a macro (Macro --> Start Recording) where you perform the following steps

    • Open Search --> Replace...
    • Select Regular expression
    • Enter regex ^.*(\r\n)*
    • Clear content of Replace with
    • Click Replace All in All Opened Documents
    • Click Ok and Close
    • Click the Save All button

    Stop the macro recording (Macro --> Stop Recording) and save it (Macro --> Save Current Recorded Macro). From the save dialog you can assign a shortcut to the macro.

    Now you can run this macro at any time with the shortcut you assigned.

    I have confirmed that this works on Notepad++ 6.2.2. On 5.8.1 however the regex does not work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an application in which one module accesses a log (an
I am working on a PHP script that needs to read log files in
I'm working on an archiving mechanism of my application's log files and would like
I'm currently working on a parser for our internal log files (generated by log4php,
I have several log files of events (one event per line). The logs can
All correct nothing changed in ini files, but XAMPP not working and showing something
I am working on a project that allows users to view log files of
I'm working with lots of log files, and most log files have lots of
I have been working in a Perl script to read log files, but none
I'm working on a Python script to parse Squid(http://www.squid-cache.org/) log files. While the logs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.