Search found 9 matches

by RyderLSK
30 Apr 2022 06:46
Forum: DOS Batch Forum
Topic: how to make bat and txt file
Replies: 14
Views: 8832

Re: how to make bat and txt file

Making the section detection a little more robust (in terms of additional spaces), but also more weak. @echo off &setlocal set "inifile=config.ini" set "section=DelayWakeUp" set "key=TimeUP" setlocal EnableDelayedExpansion set "inSection=" <"!inifile!" ( for /f %%i in ('type "!inifile!"^|find /c /v...
by RyderLSK
30 Apr 2022 06:01
Forum: DOS Batch Forum
Topic: how to make bat and txt file
Replies: 14
Views: 8832

Re: how to make bat and txt file

hen ... it works you were right I had a space for [DelayWakeUp], thank you very much for your help
by RyderLSK
30 Apr 2022 05:43
Forum: DOS Batch Forum
Topic: how to make bat and txt file
Replies: 14
Views: 8832

Re: how to make bat and txt file

if I remove the echo before start, the program starts and the cmd window is started
by RyderLSK
30 Apr 2022 05:41
Forum: DOS Batch Forum
Topic: how to make bat and txt file
Replies: 14
Views: 8832

Re: how to make bat and txt file

start wosb /run /systray tm="+::"
Press any key to continue . . .

I click the key and nothing happens, the program does not turn on
by RyderLSK
30 Apr 2022 05:35
Forum: DOS Batch Forum
Topic: how to make bat and txt file
Replies: 14
Views: 8832

Re: how to make bat and txt file

Config.ini [DelayWakeUp] Time = 60000 TimeUp = 05:00:00 @echo off &setlocal set "inifile=config.ini" set "section=DelayWakeUp" set "key=TimeUP" setlocal EnableDelayedExpansion set "inSection=" <"!inifile!" ( for /f %%i in ('type "!inifile!"^|find /c /v ""') do for /l %%j in (1 1 %%i) do ( set "line=...
by RyderLSK
30 Apr 2022 05:24
Forum: DOS Batch Forum
Topic: how to make bat and txt file
Replies: 14
Views: 8832

Re: how to make bat and txt file

&setlocal set "inifile=config.ini" set "section=DelayWakeUp" set "key=TimeUP" setlocal EnableDelayedExpansion set "inSection=" <"!inifile!" ( for /f %%i in ('type "!inifile!"^|find /c /v ""') do for /l %%j in (1 1 %%i) do ( set "line=" &set /p "line=" if defined line ( if /i "!line!"=="[!section!]"...
by RyderLSK
30 Apr 2022 05:14
Forum: DOS Batch Forum
Topic: how to make bat and txt file
Replies: 14
Views: 8832

Re: how to make bat and txt file

SET YES

[DelayWakeUp]
Time = 60000
TimeUp = 5:00:00

the program starts but does not set the time; / am I doing something wrong?
by RyderLSK
30 Apr 2022 04:12
Forum: DOS Batch Forum
Topic: how to make bat and txt file
Replies: 14
Views: 8832

Re: how to make bat and txt file

sorry the configuring file is config.ini and not txt if you can do ini config then please help me in it there are [DelayWakeUp] Time = 6000 and here I would like to download an hour from here TimeUP = 5:00:00 if you can't z ini then how to do with a txt file, nothing will be found in it, and ini the...
by RyderLSK
30 Apr 2022 03:46
Forum: DOS Batch Forum
Topic: how to make bat and txt file
Replies: 14
Views: 8832

how to make bat and txt file

Hi, I have a problem in advance, thank you for your help

I have a bat file and in it:
START wosb /run /systray tm="+5:00:00"

I would like the hour "+5: 00: 00" to add from the txt configuration file that if I enter 4:00:00 or 4 in the txt file, it will change in the batch file?