Save all opened files to change date ?
Is there a way to save all opened tab files even if i didn’t edited each file only to change the date of file ?
The save all button save only edited files.
I’ve got a solution which implies a virtual search/replacement on all the opened files of a N++ session !
Open the replace dialog ( CTRL + H )
Check the Regular expression option ( IMPORTANT )
Find what :
Replace with :
Click on the Replace All in All Opened Documents button
=> At once, all the opened tabs will turn "red"
Hit the ALT + F4 shortcut or the menu option File - Exit
Press the Enter key, repeatedly, to valid the different save dialogs (
Save file C:\...... ?)
In the search regex
.is a standard character, different from an End of Line character (
\r) and (
\n) and the Form Feed character (
The zero-width assertion
\Zrepresents the very end of the file, possibly preceded by any range of End of Line character(s) (
In replacement, this last standard character is just rewritten, as the regex
$0represents the entire matched regex, that is to say the last character itself !
This method should not use much time to process : only one character per file
Xthe amount of opened files, in N++ :-)
By the way, in a DOS console windows, you can change the modification and access date of a file or a set of them, without changing their contents, with the simple DOS command, below :
copy name.txt +or
copy *.txt +or, even,
copy *.* +( Tested on a Windows XP machine )
The space, before the plus sign is not mandatory !