Search found 4 matches

by ResonantStep
13 Jun 2019 05:39
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.4 - regex text processor with support for text highlighting and alternate character sets
Replies: 445
Views: 227272

Re: JREPL.BAT v8.2 - regex text processor with support for text highlighting and alternate character sets

Thanks a lot, very helpful and complete answer, working great and fast now. I implemented a "BOM check" and added your two commands (don't know what happens for files without BOM but I guess the script will work 99% of the time) setLocal if exist "%~f1\" ( echo This can not be used against directori...
by ResonantStep
09 Jun 2019 17:24
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.4 - regex text processor with support for text highlighting and alternate character sets
Replies: 445
Views: 227272

Re: JREPL.BAT v8.2 - regex text processor with support for text highlighting and alternate character sets

Hi, thanks for your utility, very useful in batch scripts. I'm trying to make a "drag and drop" script to remove duplicate lines and keeping last. Here's my code so far: @echo off call "JREPL.bat" "^(.*?)$\s+?^(?=.*^\1$)" "" /m /f "%~dpnx1" /o - call "JREPL.bat" "^(.*?)$\s+?^(?=.*^\1$)" "" /m /f "%~...
by ResonantStep
30 Apr 2019 04:02
Forum: DOS Batch Forum
Topic: move (or copy) selection, rename incrementally when they exist in target folder
Replies: 0
Views: 2824

move (or copy) selection, rename incrementally when they exist in target folder

Following my moveto/copyto script https://www.dostips.com/forum/viewtopic.php?f=3&t=9112 I try to implement "incremental rename" mecanism. Renaming: New text.txt to New text (2).txt, (3), (4) etc., still not sure if I should rename "New text (2).txt" to "New text (3)" or "New text (2) (2).txt" (2nd ...
by ResonantStep
27 Apr 2019 13:01
Forum: DOS Batch Forum
Topic: Context Menu Script
Replies: 0
Views: 2853

Context Menu Script

Before the details, I expose the context: I wanted to have "copyto" and "moveto" in my extended context menu (shift + right click), together with copy as path. Problem: you can either hide (delete the key) or they always show. I tried editing registry, adding values in shellex and/or clsid keys with...