Paragraph 2
All of These tips were taken directly from Jon Galloway's "Top 10 DOS Batch tips (Yes, DOS Batch...)" article from Monday, November 20, 2006 at https://weblogs.asp.net/jongalloway/top-10-dos-batch-tips-yes-dos-batch
@echo off
echo %%~1 = %~1
echo %%~f1 = %~f1
echo %%~d1 = %~d1
echo %%~p1 = %~p1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Commandline Regular Expression (regex) Verifier Tool | |
* This tool finds the first partial match in the regex's capture group 1 in the string and pipes it to stdout and exits 0 on success. | |
* Parameter 1 is the string to search, e.g., "C:\Some\Directory\with\a\special\file_unique12354.exe" | |
* Parameter 2 is the regex, e.g., "\\.+(thing to find after last backslash, like `name`).+$" | |
* which would be written like, "\\.+\\.+(unique.+)\." | |
* From CMD.exe>call crv.exe "C:\Some\Directory\with\a\special\file_unique12354.exe" "\\.+\\.+(unique.+)\." | |
* That would pipe unique12354 to STDOUT and exit 0. | |
*/ | |
#include <iostream> |