Search found 356 matches

by miskox
14 Sep 2020 04:47
Forum: DOS Batch Forum
Topic: command retunrs no value even though entry exists
Replies: 14
Views: 457

Re: command retunrs no value even though entry exists

It would be great to see binary compare. Probably your string 'Runescape' had an extra space or somethig.

Saso
by miskox
11 Sep 2020 05:27
Forum: DOS Batch Forum
Topic: command retunrs no value even though entry exists
Replies: 14
Views: 457

Re: command retunrs no value even though entry exists

Would it be possible if there is no CRLF at the end (after the last line) that it would fail (I tested it and it works even without CRLF at the end.).?

Saso
by miskox
07 Sep 2020 07:17
Forum: DOS Batch Forum
Topic: LABEL Being Processed without GOTO or CALL
Replies: 11
Views: 2037

Re: LABEL Being Processed without GOTO or CALL

@CJM: good idea. Thanks!

Saso
by miskox
17 Aug 2020 09:17
Forum: DOS Batch Forum
Topic: Memory leak when reading large text files
Replies: 18
Views: 1430

Re: Memory leak when reading large text files

Any news on this. I am really curious what is causing this memory leak. I would assume if this is a system process (that allocates nonpaged pool) it would free it when this allocation is not needed anymore. Did you test your program with some SLEEP in in it (so the number of processes created is dur...
by miskox
01 Aug 2020 12:17
Forum: DOS Batch Forum
Topic: Memory leak when reading large text files
Replies: 18
Views: 1430

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: 18
Views: 1430

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: 18
Views: 1430

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: 960

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: 2158

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: 1856

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: 1726

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: 2651

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: 3135

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: 3135

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: 3135

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...