Search found 504 matches
- 19 Jan 2021 14:29
- Forum: DOS Batch Forum
- Topic: HASHSUM.BAT v1.8 - emulate md5sum, shasum, and the like
- Replies: 60
- Views: 36379
Re: HASHSUM.BAT v1.7 - emulate md5sum, shasum, and the like
I have a couple concerns: 1) I attempt to capture the current code page so I can reset the code page at the end. However I'm not sure that the code is robust enough to work with all languages - the CHCP output may change for different languages and break my code. Dave Benham We discussed that here ...
- 18 Jan 2021 14:15
- Forum: DOS Batch Forum
- Topic: HASHSUM.BAT v1.8 - emulate md5sum, shasum, and the like
- Replies: 60
- Views: 36379
- 17 Jan 2021 11:00
- Forum: DOS Batch Forum
- Topic: Windows 10 20H2 and hash file
- Replies: 3
- Views: 206
Re: Windows 10 20H2 and hash file
balubeto, as you have definitely read the responses to your question, (because you've already posted in the thread linked to in the second response), and taking account that responses are for the community, not just for you, I would have expected you to try the answer I provided and posted with rele...
- 16 Jan 2021 21:27
- Forum: DOS Batch Forum
- Topic: Windows 10 20H2 and hash file
- Replies: 3
- Views: 206
Re: Windows 10 20H2 and hash file
One possible, but potentially slow solution, is to use the built-in certutil utility. @(For /F Delims^=^ EOL^= %%G In ('Dir /B/S/A-D "E:\SourceDir"')Do @If %%~zG==0 (Echo da39a3ee5e6b4b0d3255bfef95601890afd80709 *%%G)Else For /F %%H In ('%__AppDir__%\certutil.exe -hashfile "%%G"^|%__AppDir__%\find.e...
- 09 Jan 2021 11:23
- Forum: DOS Batch Forum
- Topic: Best way to parse out string from output? Is this acceptable?
- Replies: 6
- Views: 401
Re: Best way to parse out string from output? Is this acceptable?
As an alternative, you could use the comma delimiter, which would mean that files which are at different levels in the tree are still returned. This version uses the comma, and find instead of findstr, which IMO is not required for this type of search string. @Echo Off & SetLocal EnableExtensions Se...
- 07 Jan 2021 20:25
- Forum: DOS Batch Forum
- Topic: Best way to parse out string from output? Is this acceptable?
- Replies: 6
- Views: 401
Re: Best way to parse out string from output? Is this acceptable?
You should provide more information about your posted file content. Is what has been rendered on this site, an accurate layout of your actual file content? The reason I ask is that your file appears to wrap lines, certainly on normal size screens, is that true? Whilst, I'm fairly sure that the files...
- 15 Nov 2020 06:47
- Forum: DOS Batch Forum
- Topic: Batchville: a new batch email discussion group
- Replies: 5
- Views: 1316
Re: Batchville: a new batch email discussion group
To subscribe, send an email with a blank subject line to: batchville+subscribe@groups.io Are there any other subscription methods available Sponge Belly? I do not understand the need to do this via email, could you explain please. What about just using good old alt.msdos.batch.nt I used to use that...
- 26 Oct 2020 20:21
- Forum: DOS Batch Forum
- Topic: memory carte
- Replies: 2
- Views: 1106
Re: memory carte
Perhaps something like this will assist you @Echo Off SetLocal EnableExtensions DisableDelayedExpansion Set "Reponse=" For %%G In ( "pomme=apple" "porte=door" "bras=arm" "voiture=car" ) Do For /F "Tokens=1,* Delims==" %%H In (%%G) Do ( SetLocal EnableDelayedExpansion Set /P "Reponse=Quel est le mot ...
- 20 Sep 2020 10:34
- Forum: DOS Batch Forum
- Topic: IFEO Tool - Block malicious EXEs from running in your machine
- Replies: 2
- Views: 1174
Re: IFEO Tool - Block malicious EXEs from running in your machine
IMO, the entire thing is a waste of time done this way. It's too much effort to locate and invoke a batch file elevated, press on a number key, type a filename, press enter, press enter again, and then force close the cmd.exe window. You'll only be adding executables which you know you have, so why ...
- 18 Sep 2020 11:05
- Forum: DOS Batch Forum
- Topic: command retunrs no value even though entry exists
- Replies: 16
- Views: 3520
Re: command retunrs no value even though entry exists
The same variable expansion issue you have with `GamePath` is also evident in your 'Max Payne 2' section, with `D2Test`
- 17 Sep 2020 05:49
- Forum: DOS Batch Forum
- Topic: Debugging / syntax checksing tools for batch
- Replies: 27
- Views: 6614
Re: Debugging / syntax checking tools for batch
Indeed. Both of those were pointed out some time ago. And I removed them all a long time ago. It's possible I missed something, but they don't cause the debugger to fail or warn so it's easy to miss them in a long script. I shall check again. EDIT: Nope. All labels that were within ( ) blocks had a...
- 14 Sep 2020 08:44
- Forum: DOS Batch Forum
- Topic: Debugging / syntax checksing tools for batch
- Replies: 27
- Views: 6614
Re: Debugging / syntax checksing tools for batch
Based upon the initial code, I've seen, i.e. that posted here , there are several noteworthy things I spotted. Your biggest issue, is that you're using labels inside your parenthesised blocks. Additionally "%SRC%\PostInstall\Firefox Setup 76.0.1" should probably have an extension. IF NOT EXIST "%APP...
- 31 Aug 2020 09:15
- Forum: DOS Batch Forum
- Topic: Copy Filename - Copy File to other directory - duplicate file - filename+continuous numerating
- Replies: 12
- Views: 2046
Re: Copy Filename - Copy File to other directory - duplicate file - filename+continuous numerating
I've already told you, but you seem unable to either listen or comprehend, the very, very, basic syntax I've used, is fully explained under the help information for the command. And please don't try to absolve yourself of blame for a confusing question, your code specifically states right within it,...
- 30 Aug 2020 15:59
- Forum: DOS Batch Forum
- Topic: Copy Filename - Copy File to other directory - duplicate file - filename+continuous numerating
- Replies: 12
- Views: 2046
Re: Copy Filename - Copy File to other directory - duplicate file - filename+continuous numerating
Ich bin´s selbst, I have absolutely no intention of tutoring you through my code, however, I will say that it's considerably simpler, shorter, quicker, and easier to follow than what you or OJBakker have posted, and aGerman and others haven't posted any code, (Steffen provided only advice for your p...
- 30 Aug 2020 14:57
- Forum: DOS Batch Forum
- Topic: Copy Filename - Copy File to other directory - duplicate file - filename+continuous numerating
- Replies: 12
- Views: 2046
Re: Copy Filename - Copy File to other directory - duplicate file - filename+continuous numerating
Ich bin´s selbst, just to clarify to you, and any future readers, what my code above is supposed to do: Make thirty four copies of each file within the %Quelle% directory to the %Ziel% directory, each with the increment appended to its basename. For example: C:\000Quelle\FileName.ext » C:\000Ziel\Fi...