View Single Post
Old 30th October 2020, 18:47   #27
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
What you are asking makes no sense, deleting text like that in Notepad is the same as

FileOpen $0 xyz.txt w
FileClose $0
If you need to do a secure delete, use FileWriteByte to fill the file. If you need to secure delete according to some standard with multiple rounds of random data, use a external tool like sdelete.

On top of all this, ExecShell is not guaranteed to open the file in Notepad, the default on another system might be VIM where those shortcut keys don't work.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote