Search found 4314 matches

by Squashman
08 Feb 2022 22:22
Forum: DOS Batch Forum
Topic: Find data in an external database with Batch
Replies: 3
Views: 4356

Re: Find data in an external database with Batch

Three quarters of your problem is not even batch file related. The majority of your knowledge deficit is making the DB queries to verify the data. This forum is not a DB forum. If you need help with the DB queries you will need to ask on another site.
by Squashman
07 Feb 2022 21:48
Forum: DOS Batch Forum
Topic: Batch file to delete specific files on multiple folders
Replies: 2
Views: 4189

Re: Batch file to delete specific files on multiple folders

Like your question over on StackOverFlow , I find your technical requirements vague and incomplete. You need to be very specific and provide accurate details of everything.
by Squashman
06 Feb 2022 10:01
Forum: DOS Batch Forum
Topic: How to spool batch script logic to create another batch script but not expanded?
Replies: 5
Views: 5452

Re: How to spool batch script logic to create another batch script but not expanded?

And here is where we discussed with you about escaping the parentheses. https://www.dostips.com/forum/viewtopic.php?t=8282 I bet if I do another search I will find another thread of yours where we explained escaping the percent symbols. Regardless this site has discussed escaping the percent symbol ...
by Squashman
30 Jan 2022 18:43
Forum: DOS Batch Forum
Topic: goto-jump destroys for-vars/loop
Replies: 1
Views: 3107

Re: goto-jump destroys for-vars/loop

Batch file process from the top down. Once you break out of the FoR construct it finds the label from the top down and starts processing line by line again. If you need to break out of something without breaking the loop then use the CALL command to spawn out to a separate function.
by Squashman
30 Jan 2022 12:41
Forum: DOS Batch Forum
Topic: search for previous item
Replies: 19
Views: 13508

Re: search for previous item

May I enter the timing test contest? 8) find the file at row 99045 C:\BatchFiles\DOSTIPS\10362>TIMETHIS.EXE Antonio.bat E:\19004.zip TimeThis : Command Line : Antonio.bat TimeThis : Start Time : Sun Jan 30 12:39:45 2022 TimeThis : End Time : Sun Jan 30 12:40:14 2022 TimeThis : Elapsed Time : 00:00:...
by Squashman
30 Jan 2022 11:42
Forum: DOS Batch Forum
Topic: Find text string in TXT hosted on Server.
Replies: 11
Views: 9351

Re: Find text string in TXT hosted on Server.

So if you have files on another computer on your network how do you get to them?

(Teaching you to fish)
by Squashman
30 Jan 2022 10:22
Forum: DOS Batch Forum
Topic: Find text string in TXT hosted on Server.
Replies: 11
Views: 9351

Re: Find text string in TXT hosted on Server.

So you know the name of the server. You know the severs ip address. You know the name of the file you need to search. You know what the search string is. What is your problem?
by Squashman
30 Jan 2022 10:18
Forum: DOS Batch Forum
Topic: Insert Text in Second Last Line of .xml
Replies: 6
Views: 4272

Re: Insert Text in Second Last Line of .xml

To me it does not seem to be escaping the / in </menu>, therefore its excluding any line with menu in it? What made you think you needed to escape anything in the search string using the find command? The help syntax does not reference it at all. If you read the help for the findstr command then in...
by Squashman
29 Jan 2022 14:06
Forum: DOS Batch Forum
Topic: search for previous item
Replies: 19
Views: 13508

Re: search for previous item

New code. @echo off &setlocal set "file=filearchive2.txt" set "search=doc190049.pdf" for /f "usebackq tokens=1,2,* delims= " %%G in (`findstr /IC:"#" /IC:"%search%" "%file%"`) do ( if /I "%%G"=="#" ( set "archive=%%I" ) ELSE ( FOR /F "tokens=1,2,* delims= " %%J in ("%%I") DO ( IF /I "%%L"=="%search%...
by Squashman
29 Jan 2022 13:30
Forum: DOS Batch Forum
Topic: search for previous item
Replies: 19
Views: 13508

Re: search for previous item

this is exactly real word 2015-01-03 22:31 4490416 4490416 d:\zipfile1.7z # Archivio d:\zipfile1.7z 2015-01-01 22:51 56091 56369 file1.pdf 2015-01-01 22:51 14975 14479 file2.pdf # Fine dell'archivio 2015-01-03 22:31 4490416 4490416 d:\zipfile2.7z # Archivio d:\zipfile2.7z 2015-01-02 23:21 14576321 ...
by Squashman
29 Jan 2022 13:09
Forum: DOS Batch Forum
Topic: search for previous item
Replies: 19
Views: 13508

Re: search for previous item

this is exactly real word 2015-01-03 22:31 4490416 4490416 d:\zipfile1.7z # Archivio d:\zipfile1.7z 2015-01-01 22:51 56091 56369 file1.pdf 2015-01-01 22:51 14975 14479 file2.pdf # Fine dell'archivio 2015-01-03 22:31 4490416 4490416 d:\zipfile2.7z # Archivio d:\zipfile2.7z 2015-01-02 23:21 14576321 ...
by Squashman
29 Jan 2022 12:05
Forum: DOS Batch Forum
Topic: search for previous item
Replies: 19
Views: 13508

Re: search for previous item

darioit wrote:
29 Jan 2022 11:59
@Squashman slowly but can't find a zip match, sorry
I will disagree. It finds the matches based on your provided data. If it did not find a match then your provided data is not what you gave as an example.
by Squashman
29 Jan 2022 11:47
Forum: DOS Batch Forum
Topic: search for previous item
Replies: 19
Views: 13508

Re: search for previous item

Another option. Probably not as fast as aGerman's solution. Don't have a big file to test with us. echo off &setlocal set "file=filearchive.txt" set "search=doc3.pdf" for /f "usebackq tokens=1,* delims= " %%G in ("%file%") do ( if /I "%%G"=="#Archivio" ( set "archive=%%H" ) ELSE ( FOR /F "tokens=1,2...
by Squashman
27 Jan 2022 12:00
Forum: DOS Batch Forum
Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Replies: 550
Views: 1988513

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

Hello. i am stuck on trying to search&replace chars .\ with null. i want to eliminate all occurences of ".\" in every line of a test file. here below the Windows script (called by call :jreplcall). No error is shown and no replacement is done. I am sure the chars are the problem but i dont see how ...
by Squashman
26 Jan 2022 16:34
Forum: DOS Batch Forum
Topic: The fastest way to detect internal IP address
Replies: 8
Views: 7223

Re: The fastest way to detect internal IP address

I use the following command to detect internal IP address (the 4th field): netstat -rn | findstr "\<0.0.0.0\>" In my opinion it's too slow. I think it's because of netstat as the slowest command itself. Slow computer then. On my 8th Gen I7 I blinked and this was done. TimeThis : Command Line : nets...