Yeah, I honestly did not take note of the Windows XP comment. Thanks.atfon wrote: ↑01 Nov 2021 06:06That script also uses timeout, which was not part of the standard OS for Windows XP.Gerhard wrote: ↑30 Oct 2021 00:28Here is another one created by Aacini on Stackoverflow some years back.
Code: Select all
:wait timeout /T 1 /NOBREAK > NUL
Search found 11 matches
- 01 Nov 2021 22:59
- Forum: DOS Batch Forum
- Topic: Live coundown timer
- Replies: 10
- Views: 8261
Re: Live coundown timer
- 30 Oct 2021 01:33
- Forum: DOS Batch Forum
- Topic: Wait for input
- Replies: 7
- Views: 5647
Re: Wait for input
No problem. If you're going to use start, rather do it the correct way as well using the blank title:
Code: Select all
start "" program.exe "%runme%"
- 30 Oct 2021 00:32
- Forum: DOS Batch Forum
- Topic: Wait for input
- Replies: 7
- Views: 5647
Re: Wait for input
you mean like this?
Code: Select all
@echo off
set /p "runme=Program.exe"
"program.exe" "%runme%"
- 30 Oct 2021 00:28
- Forum: DOS Batch Forum
- Topic: Live coundown timer
- Replies: 10
- Views: 8261
Re: Live coundown timer
Here is another one created by Aacini on Stackoverflow some years back. @echo off setlocal rem Get end time REM for /F "tokens=1,2 delims=:" %%a in ("ResponseTime.txt") do set /A endH=10%%a%%100, endM=1%%b%%100 REM Just for testing: set endH=14 set endM=58 title Timer mode con cols=16 lines=2 :synch...
- 30 Oct 2021 00:11
- Forum: DOS Batch Forum
- Topic: DOS Command Help
- Replies: 7
- Views: 7903
Re: DOS Command Help
ok, so firstly, is this really DOS? or Windows cmd? anyway, to list the files in current directory: dir /b /a-d G* D* add /s if you want run through subdirectories as well. on the rename of html files, That will really depend on more information. a simply rename *.html *.htm will rename files in the...
- 30 Oct 2021 00:04
- Forum: DOS Batch Forum
- Topic: Wait for input
- Replies: 7
- Views: 5647
Re: Wait for input
That will depend on the executable, does it allow for input at runtime? cmd cannot interact with the executable, so it will simply launch it when you tell it to. Obviously if the program allows parameters, you should be able to run it as program.exe param1 param2 and in some use cases if it accepts ...
- 27 Oct 2021 23:46
- Forum: DOS Batch Forum
- Topic: Attention: Aacini Re: Resistor color calculator
- Replies: 8
- Views: 6604
Re: Attention: Aacini Re: Resistor color calculator
Thanks Aacini. Your code is now providing the correct values and matches my powershell results. I do get what you are saying about the powershell option not being a "simpler" solution than batch. My comment around the powershell solution was maybe made without looking at the requirements of the topi...
- 27 Oct 2021 05:03
- Forum: DOS Batch Forum
- Topic: Attention: Aacini Re: Resistor color calculator
- Replies: 8
- Views: 6604
Re: Attention: Aacini Re: Resistor color calculator
@Siberia-Man, thank you for checking up on that. Let me find some more references that to get a conclusive result. Perhaps @Aacini and I just need to focus our results on a single source for comparison. He did provide me with his source, but I am unable to access it due to running an ad-blocker on m...
- 26 Oct 2021 08:22
- Forum: DOS Batch Forum
- Topic: Attention: Aacini Re: Resistor color calculator
- Replies: 8
- Views: 6604
Re: Attention: Aacini Re: Resistor color calculator
Ok, so I just finished this and did not do optimal testing yet, but I will edit if I find anything particularly wrong. I have not created any decimal system to differentiate between Ohm / K-Ohm / M-Ohm. If you feel that it is something I need to do, then please do let me know. $bds = @{ black = @(0;...
- 26 Oct 2021 07:10
- Forum: DOS Batch Forum
- Topic: Attention: Aacini Re: Resistor color calculator
- Replies: 8
- Views: 6604
Re: Attention: Aacini Re: Resistor color calculator
Apologies, Aacini. I did not mean the decimals. Just correct data. So if a resistor is +- 1Kohm, we need to match that. Then on number of bands of the resistor to focus on, I see you already catered for 4 and 5 bands, so I will do the same. Give me a few minutes to post mine and also test yours.
- 26 Oct 2021 00:00
- Forum: DOS Batch Forum
- Topic: Attention: Aacini Re: Resistor color calculator
- Replies: 8
- Views: 6604
Attention: Aacini Re: Resistor color calculator
@Aacini, We can use this topic for the challenge. I suggest the following judging criteria (you can add/remove/change where required: 1. The "must" be pure batch-file and powershell . No external tools/functions allowed. (this is critical else it is cheating :D ) 2. The code needs to be as short as ...