Removing duplicate lines in a text file using notepad++

First ensure the TextFx plugin has been installed in your version of notepad++. Some example text: I then copy and paste that block of text to ensure there are duplicate lines: Removing the duplicates involves THREE steps: 1. If you have not already done so, ensure the appropriate TextFX plugin is checked. Select TextFX > …

Continue reading ‘Removing duplicate lines in a text file using notepad++’ »

Using robocopy to transfer files: tips and tricks

1. To copy a single file   2. To copy multiple files   3. To copy all files of a given extension   4. To copy the contents of an entire directory Robocopy creates the d:\that_folder\a directory and copies the files from the c:\this_folder\a directory into it. Use the E/ switch to copy the entire …

Continue reading ‘Using robocopy to transfer files: tips and tricks’ »

How to remove lines containing specific text in Notepad++ using the Bookmarks method

How to use Notepad++ to remove all lines containing a specific text. First install Notepad++ if you have not already done so, given that it really is a powerful piece of software: https://notepad-plus-plus.org/download/ Now we can demonstrate an example with the following XML-style text: Suppose we wish to remove all lines containing the text “wpdm” …

Continue reading ‘How to remove lines containing specific text in Notepad++ using the Bookmarks method’ »

How to programmatically control access to files in C# using FileSecurity objects

A quick demonstration on how to control access to files in real-time. As described in the Microsoft documentation, the control access to a file can be added or removed by obtaining the FileSecurity object from that file, then modified, and then applied back to the file. In this example I choose to change the file …

Continue reading ‘How to programmatically control access to files in C# using FileSecurity objects’ »