Search found 3 matches

by mojobadshah
08 Jun 2020 23:05
Forum: DOS Batch Forum
Topic: Ouput Multiple Lines and Input into Duplicate Path
Replies: 0
Views: 451

Ouput Multiple Lines and Input into Duplicate Path

I have a FOR statement that requires text to (?echo or ?set) output multiple lines and for these multiple lines to be stdin'd to a duplicate path variable eg. %num% . What overcomplicated means is there to do this? I'm using index and array arithmetic functions.
by mojobadshah
08 May 2020 18:31
Forum: DOS Batch Forum
Topic: Simple Batch JScript Match And Replace Hybird
Replies: 0
Views: 884

Simple Batch JScript Match And Replace Hybird

What can I do to modify a regular expression batch/JScript hybrid like this one in order to perform a RegExp replace !!after a RegExp match? These will work when match is either the last string in an expression or on its own. @set @a=0 /* @cscript //nologo //E:JScript "%~F0" < sample1.txt > sample2....
by mojobadshah
27 Apr 2020 15:48
Forum: DOS Batch Forum
Topic: Match Specific Characters in File Content and Print as Incremented Numeric List
Replies: 0
Views: 2127

Match Specific Characters in File Content and Print as Incremented Numeric List

I've been working with FINDSTR and FOR commands. I want to procure a BATCH file that will match specific characters or character strings in the contents of a text file and output these matches with incrementing numeric values appended to them. Using the FOR command in conjunction with the (1,1,5) an...