Search found 1983 matches

by penpen
30 May 2022 03:24
Forum: DOS Batch Forum
Topic: Dynamically change icon in context menu
Replies: 38
Views: 49894

Re: Dynamically change icon in context menu

I can't check myself (since i I have no Win11), So i can list only two potential issues i see ad hoc: Microsoft might have changed the GUID of the power plans. You could compare the GUID used in "ChangePowerPlan.reg" with the GUID listed by following command: powercfg.exe /L If there was a change, t...
by penpen
24 May 2022 09:15
Forum: DOS Batch Forum
Topic: ahci.sys
Replies: 12
Views: 22415

Re: ahci.sys

I don't remember any driver named "AHCI.SYS", but i think i remember one named "AHCICD.SYS", so no guarantees for the following: If i remember right, then the "AHCICD.SYS" has an optional parameter "/C:<#AHCI-Controller>", where "<#AHCI-Controller>" is a digit from 0 to 9. If you leave out that para...
by penpen
19 May 2022 06:07
Forum: DOS Batch Forum
Topic: Optimization of Mass Copy Via Batch
Replies: 7
Views: 10842

Re: Optimization of Mass Copy Via Batch

I am not familiar with NAS-devices, so the following idea might or might not be possible; typically when you want to send the same data to multiple recipients simultaneously, you would use broadcast (send to all nodes in the network) or multicast (send to multiple nodes in a network) in order to red...
by penpen
12 May 2022 04:46
Forum: DOS Batch Forum
Topic: Open, Add Line, Save, Next File Help
Replies: 6
Views: 7798

Re: Open, Add Line, Save, Next File Help

I would expect such a result if your source files to not contain line endings at all or no line endings of the form "\r\n" (in hex "0D 0A"). On the other hand, that should have been preserved in your resulting files, which show the (windows) endline. Do you have opened and saved the resulting files ...
by penpen
30 Apr 2022 05:02
Forum: DOS Batch Forum
Topic: How to define screen buffer size for "Mode 120,60" command?
Replies: 8
Views: 13311

Re: How to define screen buffer size for "Mode 120,60" command?

I only added a debug output, so you can see whether or not the error message is misleading.
I didn't change the program logic.
by penpen
29 Apr 2022 02:43
Forum: DOS Batch Forum
Topic: How to define screen buffer size for "Mode 120,60" command?
Replies: 8
Views: 13311

Re: How to define screen buffer size for "Mode 120,60" command?

You should test, whether or not the error text really is misleading. Since the buffer is set first, it might be smaller than the actual window size at that point: powershell.exe -noprofile -command "&{Write-Host "initial WindowSize $(get-host).UI.RawUI.WindowSize"; $w=(get-host).ui.rawui;$w.buffersi...
by penpen
15 Feb 2022 08:10
Forum: DOS Batch Forum
Topic: Batch file to merge two column strings from two files into one file
Replies: 4
Views: 9365

Re: Batch file to merge two column strings from two files into one file

Just wanted to mention that you might get unwanted results, if your example is not representative. In SQL terms (which is the easiest to describe a possible issue): If you assume the line number to be the related column to join, then the the solution is a natural inner join. If that is, what you wan...
by penpen
07 Feb 2022 13:25
Forum: DOS Batch Forum
Topic: Batch command
Replies: 2
Views: 5413

Re: Batch command

Batch is an interpreter language, which means that the interpreter is always loaded (which under windows typically is cmd.exe).
So, maybe your batch file but leaving out the first line ("start cmd.exe") is, what you are looking for.

penpen
by penpen
07 Feb 2022 13:03
Forum: DOS Batch Forum
Topic: Replace strings scripts not done good job
Replies: 5
Views: 7914

Re: Replace strings scripts not done good job

Yes, within batch the double quote guarantees you to parse the string as a whole. But you then replace the string without those doublequotes (which is exactly, what you want, because there are no double quotes int the text files you change). The question then is, do you want to allow partial string ...
by penpen
07 Feb 2022 07:22
Forum: DOS Batch Forum
Topic: Replace strings scripts not done good job
Replies: 5
Views: 7914

Re: Replace strings scripts not done good job

The program repeatedly call the function ":schemes", that replaces one string in a text file with another, based on the content of "pkg_data_temp.txt", which is processed line by line from top to down. The issue then is caused by the fact that some of the lines to replace are also part of other line...
by penpen
15 Jan 2022 05:54
Forum: DOS Batch Forum
Topic: Wokring out battle messages and lol
Replies: 3
Views: 6260

Re: Wokring out battle messages and lol

It uses word lists based on a division of %random%, for example %random%/10922 results in an out put of 0, 1 or 2. (though i am half sure it should be 1,2,3) If i rremember right, then random is a non negative and non zero 16-bit signed int, so the result of "%random%/10922" should be either 0, 1, ...
by penpen
15 Jan 2022 05:10
Forum: DOS Batch Forum
Topic: batch script to log into email account
Replies: 6
Views: 13194

Re: batch script to log into email account

1) The OP is from 2009. 2) We don't know the browser the op is using, so we can't know whether or not that browser is capable of auto login. 3) Adding login and password to cookies never ever is a good idea. 4) Unless the website doesn't support outo login, adding login and password to a cookie have...
by penpen
15 Jan 2022 04:51
Forum: DOS Batch Forum
Topic: finding parent dir and current dir names in a branch
Replies: 5
Views: 6734

Re: finding parent dir and current dir names in a branch

AA is n-file x n-file operations and not n-file operations ??? If you read this twice (or three times or even four times) would you get any sensible information out of it? Just guessing that nnnmmm tries to make a claim about quadratic run time requirement of that command. The input seem to be the ...
by penpen
12 Jan 2022 07:03
Forum: DOS Batch Forum
Topic: how do i make an output of ECHO SET V5=2>> %BAT%
Replies: 16
Views: 16416

Re: how do i make an output of ECHO SET V5=2>> %BAT%

Though that information is technically correct, this is not the issue of the OP,
since nnnmmm used that specific detail corrrectly in his opening post.