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 9005727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:13:17+00:00 2026-06-16T01:13:17+00:00

Is it possible to display the date and time of the last modification on

  • 0

Is it possible to display the date and time of the last modification on the currently opened file in Notepad++?
It would be nice to have that information always visible, e.g. in the status bar.

I am using Notepad++ v5.9.3 (UNICODE) on Windows XP SP3.

  • 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-16T01:13:19+00:00Added an answer on June 16, 2026 at 1:13 am

    C# Console app; I wrote this up in five minutes because it’s all I have and would like this. It’s not pretty but as good as I can do for now. It’s a starting point at least.

    Notepad++ Last Date Modified

    using System;
    using System.Collections.Generic;
    using System.Diagnostics;
    using System.IO;
    using System.Linq;
    using System.Runtime.InteropServices;
    using System.Text;
    using System.Threading;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    
    namespace Notepadd___DateModified
    {
        class Program
        {
            [DllImport("user32.dll", SetLastError = true)]
            static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
    
             [DllImport("user32.dll", EntryPoint = "SendMessage", CharSet = System.Runtime.InteropServices.CharSet.Auto)] 
            public static extern bool SendMessage(IntPtr hWnd, uint Msg, int wParam, StringBuilder lParam);
    
            [DllImport("user32.dll", SetLastError = true)]
            public static extern IntPtr SendMessage(int hWnd, int Msg, int wparam, int lparam);
    
            [DllImport("user32.dll")]
            public static extern int SendMessage(IntPtr hWnd, int msg, int Param, string s);
    
            const int WM_GETTEXT = 0x000D;
            const int WM_SETTEXT = 0x000c;
            const int WM_GETTEXTLENGTH = 0x000E;
    
            static void Main(string[] args)
            {
                while (true)
                {
    
                    foreach (Process p in Process.GetProcessesByName("Notepad++"))
                    {
                        if (p.Id != Process.GetCurrentProcess().Id)
                        {
                            try
                            {
                                DateTime LastModified = Directory.GetLastWriteTime(p.MainWindowTitle.Replace(" - Notepad++", ""));
    
                                IntPtr childHandle;
                                childHandle = FindWindowEx(p.MainWindowHandle, IntPtr.Zero,  "msctls_statusbar32", null);
    
                                StringBuilder subtitle = new StringBuilder();
                                Int32 subsize = SendMessage((int)childHandle, WM_GETTEXTLENGTH, 0, 0).ToInt32();
    
                                if (subsize > 0)
                                {
                                    subtitle = new StringBuilder(subsize + 1);
                                    SendMessage(childHandle, (int)WM_GETTEXT, subtitle.Capacity, subtitle);
                                }
    
                                if (!subtitle.ToString().Contains(" - Last Modified: " + LastModified.ToString()))
                                {
                                    SendMessage(childHandle, WM_SETTEXT, 0, subtitle.ToString().Split(new string[] { " - Last Modified: " },StringSplitOptions.None)[0] + " - Last Modified: " + LastModified.ToString());
                                    Console.Out.WriteLine(subtitle + " - Last Modified: " + LastModified.ToString());
                                }
                            }
                            catch
                            {
                                break;
                            }
                        }
                        else return;
                    }
                    Thread.Sleep(1000);
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to display the created_at date, only if that date matches today's
Possible Duplicate: How to Get time difference in iPhone I´m getting date and time
Currently I have 3 values that I need to sort, in the following order:
Possible Duplicate: Php.Advance weekly calendar one week I have written a script that displays
I'm trying to find out how I can display dynamic date and time using
Possible Duplicate: Formatting a date in JavaScript I have the following piece of script.
I'm looking to display a list of comments, username, and date/time the comment was
I have an image that i want to display as a sun during daytime
Possible Duplicate: PHP - How can I check if the current date/time is past
Possible Duplicate: How can I display the Build number and/or DateTime of last build

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.