Search found 397 matches

by miskox
01 Aug 2020 12:17
Forum: DOS Batch Forum
Topic: Memory leak when reading large text files
Replies: 19
Views: 6194

Re: Memory leak when reading large text files

Memory in nonpaged pool will remain allocated until it is released by the creator. So this is causing problems if the process that allocated the memory does not free it. Regarding the %? I really don't know. Be on a safe side (as you can see I was doing my research on XP in 2014 - so you probably ha...
by miskox
01 Aug 2020 11:17
Forum: DOS Batch Forum
Topic: Memory leak when reading large text files
Replies: 19
Views: 6194

Re: Memory leak when reading large text files

No. You can't free Nonpaged pool - only with a reboot. That is why my .bat has a stop when it is too close for the system to become unusable. You have to find which driver it is. I used POOLMON.EXE... You can do the test in a virtual machine with a clean Windows install. If there will be no problems...
by miskox
30 Jul 2020 07:00
Forum: DOS Batch Forum
Topic: Memory leak when reading large text files
Replies: 19
Views: 6194

Re: Memory leak when reading large text files

Maybe this is the reason viewtopic.php?f=3&t=5495&p=34663

You actually create lots of files...

I had problems with the nonpaged pool...

Saso
by miskox
19 Jun 2020 01:56
Forum: DOS Batch Forum
Topic: How escape a pipe ?
Replies: 3
Views: 2085

Re: How escape a pipe ?

Does it work If you add ^ ? for /f "delims=" %I in ('mshta "about:<OBJECT id=HTMLDlgHelper classid="CLSID:3050F4E1-98B5-11CF-BB82-00AA00BDCE0B"></OBJECT><SCRIPT language="VBSCRIPT">Sub window_onload : a=HtmlDlgHelper.object.openfiledlg("C:\windows.iso", ,"*.iso^|","Select"): CreateObject("Scripting....
by miskox
20 Apr 2020 03:36
Forum: DOS Batch Forum
Topic: How to disable Avast until reboot
Replies: 7
Views: 3669

Re: How to disable Avast until reboot

I think it would be better to ask the Avast Forum for this how to disable it.

saso
by miskox
20 Apr 2020 03:27
Forum: DOS Batch Forum
Topic: how to stop a space from aborting a batch process
Replies: 4
Views: 2915

Re: how to stop a space from aborting a batch process

Use Quotes with filename/directory:

Code: Select all

Start "" del /q "c:\program files\glarysoft\malware hunter\mhtray.exe"
Saso
by miskox
14 Apr 2020 12:50
Forum: DOS Batch Forum
Topic: Sticky post (batch script collection)
Replies: 1
Views: 2282

Sticky post (batch script collection)

Here (https://www.dostips.com/forum/viewtopic.php?p=61727#p61727) Penpen links to Batch script collection (outsourced) (https://www.dostips.com/forum/viewtopic.php?f=3&t=7420&p=49133#p49133). I must say that I really like this post and would like to see it 'sticky' at the top of the forum (it can be...
by miskox
07 Apr 2020 03:18
Forum: DOS Batch Forum
Topic: Shift and %*
Replies: 5
Views: 3941

Re: Shift and %*

Code: Select all

shift /n
?

See shift /?

Saso
by miskox
06 Apr 2020 03:35
Forum: DOS Batch Forum
Topic: Copy CD contents with CD name
Replies: 16
Views: 5760

Re: Copy CD contents with CD name

Thanks Steffen for a very short version (I am limited with my XP machine...(ROBOCOPY)) (anyway I wouldn't make it this short). Experts are experts.

Saso
by miskox
05 Apr 2020 10:48
Forum: DOS Batch Forum
Topic: Copy CD contents with CD name
Replies: 16
Views: 5760

Re: Copy CD contents with CD name

Did you try my solution? It works for me.

Saso
by miskox
04 Apr 2020 11:35
Forum: DOS Batch Forum
Topic: Copy CD contents with CD name
Replies: 16
Views: 5760

Re: Copy CD contents with CD name

This could be a start. Replace three strings with your data (this could be automated but requires more time). If folder already exists .cmd exits. Change XCOPY qualifiers if required. ECHO BEL coudl be added at the end so you know when the operation completes. @echo off :begin REM Update strings bel...
by miskox
28 Dec 2019 14:13
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 130
Views: 122182

Re: CONVERTCP.exe - Convert text from one code page to another

FYI: first version (.cpp) has 131 lines (including some 50 lines of comments and help). Version 7.2 (.c) has (7.3 source is not available yet) has 1573 lines.

Saso
by miskox
27 Dec 2019 03:16
Forum: DOS Batch Forum
Topic: Set statement not working
Replies: 2
Views: 2041

Re: Set statement not working

First you must replace ' with ": set "FullTarget1=Docfxit 192.168.168.9" set "FullTarget2=DocfxitLT 192.168.168.7" set "FullTarget3=ErrolLT530 192.168.2.5" set "FullTarget4=CONSOLE2-I5 192.168.168.16" Then replace: If defined FullTarget4 (If /i not %FullTarget4%.=="". echo. %FullTarget4%>>%~f0.txt) ...
by miskox
25 Dec 2019 12:38
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 130
Views: 122182

Re: CONVERTCP.exe - Convert text from one code page to another

I received the information that option /l is broken on XP. The update to v7.1 is supposed to fix that. Although I have to wait for feedback since I can't test on XP anymore. Virustotal scans of version 7.1: x86: https://www.virustotal.com/gui/file/86099ad973b84af66e2e4e517d8a6d67b66222e2c6246b0747a...