Search found 1973 matches
- 07 Feb 2022 07:22
- Forum: DOS Batch Forum
- Topic: Replace strings scripts not done good job
- Replies: 5
- Views: 4694
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...
- 15 Jan 2022 05:54
- Forum: DOS Batch Forum
- Topic: Wokring out battle messages and lol
- Replies: 3
- Views: 3736
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, ...
- 15 Jan 2022 05:10
- Forum: DOS Batch Forum
- Topic: batch script to log into email account
- Replies: 6
- Views: 9213
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...
- 15 Jan 2022 04:51
- Forum: DOS Batch Forum
- Topic: finding parent dir and current dir names in a branch
- Replies: 5
- Views: 4033
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 ...
- 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: 8490
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.
since nnnmmm used that specific detail corrrectly in his opening post.
- 28 Dec 2021 08:25
- Forum: DOS Batch Forum
- Topic: issue with IF statement and weird character
- Replies: 21
- Views: 10417
Re: issue with IF statement and weird character
The actual codepage of the "cmd.exe" might be interesting (using "chcp.com"), in case it's no control character, but some form of whitespace-character like some version of a "comma".
penpen
penpen
- 27 Dec 2021 20:03
- Forum: DOS Batch Forum
- Topic: Obfuscate code.
- Replies: 19
- Views: 9881
Re: Obfuscate code.
I would have expected any intermediate batch file user to easily get the password (at least here in this case, where we are allowed to see the code), though i have no access to such a group to check.
penpen
penpen
- 27 Dec 2021 08:35
- Forum: DOS Batch Forum
- Topic: HDD size
- Replies: 8
- Views: 5640
Re: HDD size
I also don't know that and would expect it to work lke aGerman assumed; but you might test that for yourself, since you already seem to have such a setup (maybe you could get the information of all hdds remotely and check of one differs too muc; my partitions don't sum up to the disk size, which pro...
- 26 Nov 2021 07:36
- Forum: DOS Batch Forum
- Topic: Coding challenge for any interested parties
- Replies: 20
- Views: 10322
Re: Coding challenge for any interested parties
You should also check against code injection inputs like 'test=123" & echo(' with a big enough length like 10. I only found one reliable way to check whether the input string is empty. I'm not sure if i should post it here as it may spoil the fun out of it for others to discover that for themselves....
- 24 Nov 2021 16:16
- Forum: DOS Batch Forum
- Topic: Coding challenge for any interested parties
- Replies: 20
- Views: 10322
Re: Coding challenge for any interested parties
I think, you need to provide some more detail on the input: - the encoding of the characters: Which codepage do you assume to be used? - the source type: Is the input stored in file or do you retrieve that from STDIN? - the source format: Is there a delimiter, that seperates both inputs (string and ...
- 21 Nov 2021 17:47
- Forum: DOS Batch Forum
- Topic: How to close cmd after Programm startet
- Replies: 4
- Views: 3454
Re: How to close cmd after Programm startet
I'm not familiar with OpenJDK, but if it's similar to the JDK, then there are two executables: One for windows ("javaw.exe") and one for the console window ("java.exe"). If you start the console version, then the console will stay open, because its streams (STDIN, STDOUT and STDERR) are connected wi...
- 12 Nov 2021 08:35
- Forum: DOS Batch Forum
- Topic: Detect echo state without temporary file
- Replies: 14
- Views: 16787
- 12 Nov 2021 08:20
- Forum: DOS Batch Forum
- Topic: Download files with certutil -urlcache
- Replies: 3
- Views: 3922
Re: Download files with certutil -urlcache
-- is it really reliable method to download any file (the first form, or second one or both)? -- are there any restrictions in using this tool? The option "-split" might be needed depending on how the server you are downloading from answers your request. If the file you want to get is send as an im...
- 12 Nov 2021 08:04
- Forum: DOS Batch Forum
- Topic: Batch file edit text file
- Replies: 20
- Views: 46253
Re: Batch file edit text file
When there are unknown numbers in a particular place, then you either have to get to know those (e.g. using the "for/f"-command), or have to use something that is able to search for structures in strings. So that depends on the source file you want to process; if there's are only a single (or very f...
- 28 Sep 2021 17:22
- Forum: DOS Batch Forum
- Topic: display time in 12 hr
- Replies: 25
- Views: 28321
Re: display time in 12 hr
I don't know about the bug you mentioned, so the following might or might not ne usefull. In my experience a changing offset is caused by the "Set Time Zone Automatically" feature, which is realized by an informed guessing of your current geolocation; see: https://docs.microsoft.com/en-us/uwp/api/Wi...