Save all opened files to change date ?
-
Hi,
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.Thank You.
-
Hello Panteror,
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 :
.\Z -
Replace with :
$0 -
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:\...... ?)
Notes :
-
In the search regex
.\Z:-
The part
.is a standard character, different from an End of Line character (\r) and (\n) and the Form Feed character (\f) -
The zero-width assertion
\Zrepresents the very end of the file, possibly preceded by any range of End of Line character(s) (\rand/or\n)
-
-
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++ :-)Best regards,
guy038
P.S. :
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 +orcopy *.txt +or, even,copy *.* +( Tested on a Windows XP machine )The space, before the plus sign is not mandatory !
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login