Posts

Showing posts from May, 2018

Get Recent folder name

for /f "delims=" %%a in ('dir "C:\" /b /ad-h /od "Anoth*"') do set "latestDir=%%~a" echo %latestDir%

Use Dir command to list only folders

> dir/ ad /b /on source: http://forums.devshed.com/programming-42/dir-command-list-folders-504954.html

[Notepad++] How can I delete rest of the line after a specific string?

Using find and replace: Hit CTRL-H to open the Replace dialogue box enter  String .*  into Find what leave Replace with empty(/1) Select Regular expression and .matches newline Click on Replace ref:https://superuser.com/questions/233562/how-can-i-delete-rest-of-the-line-after-a-specific-string