Search found 36 matches: waitfor

Searched query: waitfor

by arjunae
18 Dec 2022 23:53
Forum: DOS Batch Forum
Topic: simple Batch based Tail
Replies: 6
Views: 11399

Re: simple Batch based Tail

... it's okay as written before there's no need to somehow squeeze it into one line and such not worth a bigger discussion. Ill update the code to use waitfor and try both for the build log tail in the next days. thank you for helping me ! Tho call "c:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" ...
by arjunae
17 Dec 2022 21:34
Forum: DOS Batch Forum
Topic: simple Batch based Tail
Replies: 6
Views: 11399

Re: simple Batch based Tail

thank you for clearing things up and your code Antonio! i didnt expect dos for having a waitfor which wont stress io. (like the filesize check loop aproach) its like https://twitter.com/OTerrifying/status/1604301103478165505 and might even function with faster apache ...
by Aacini
16 Dec 2022 23:53
Forum: DOS Batch Forum
Topic: simple Batch based Tail
Replies: 6
Views: 11399

Re: simple Batch based Tail

... do ( set "line=" set /P "line=" echo(!line! ) if not defined follow exit /B :follow set "line=" set /P "line=" if defined line echo(!line! waitFor /T 1 StopTail > NUL 2>&1 if errorlevel 1 goto follow exit /B The method to stop the Follow cycle in this program is sending a StopTail signal ...
by OJBakker
08 Dec 2022 03:30
Forum: DOS Batch Forum
Topic: This is really stupid but
Replies: 1
Views: 7240

Re: This is really stupid but

Try the

Code: Select all

WaitFor
command.
See

Code: Select all

waitfor /?
for the syntax.
by Aacini
07 Nov 2022 11:04
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 19603

Re: Copy tags and its child elements from specific XML schema

I am pretty sure that the problem is caused by the very high number of files that are keep open (and the very high number of waitfor different signals, etc). I modified the method in order to completely process each file, one by one. In this way, the number of files should not affect ...
by Aacini
02 Nov 2022 23:56
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 19603

Re: Copy tags and its child elemnts from specific XML schema

... do ( set /A n+=1 set "file[!n!]=%%~Nf" ) ECHO Start Process @ %time:~0,-3% del output.txt 2> NUL for /L %%i in (1,1,%n%) do start "" /B "%~F0" %%i WaitFor File1End > NUL ECHO End Process @ %time:~0,-3% del space.txt goto :EOF ================================================= :StartFirst Start the ...
by Aacini
01 Nov 2022 17:31
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 19603

Re: Copy tags and its child elemnts from specific XML schema

... based on several concurrent (parallel) processes that process a file each, so the different sections of the output result are synchronized via WAITFOR signals. IMHO this is the most efficient method to solve this problem. The structure of the *.xml files must be this one: - <?xml ..... > - ...
by RSP
15 Nov 2021 15:26
Forum: DOS Batch Forum
Topic: How to communicate from one computer to another in Batch
Replies: 11
Views: 12170

Re: How to communicate from one computer to another in Batch

... > %temp%\Message.txt echo %0 just created the file %temp%\Message.txt echo. echo Waiting for client.cmd to signal that they have read the file. waitfor.exe JobDone echo. echo Signal received from client.cmd del %temp%\Message.txt goto loop endlocal Code for Client.cmd: @setlocal @echo off title ...
by Joe Caverly
15 Nov 2021 07:49
Forum: DOS Batch Forum
Topic: How to communicate from one computer to another in Batch
Replies: 11
Views: 12170

Re: How to communicate from one computer to another in Batch

I found a post I made a while back on how I use WAITFOR.EXE from TCC (Take Command Console from JPSoft.com) and VBScript.

This could also be made to work with cmd.exe, instead of tcc.exe

Joe

Ref: https://jpsoft.com/forums/threads/waitf ... nge.10403/
by Joe Caverly
14 Nov 2021 08:58
Forum: DOS Batch Forum
Topic: How to communicate from one computer to another in Batch
Replies: 11
Views: 12170

Re: How to communicate from one computer to another in Batch

... > %temp%\Message.txt echo %0 just created the file %temp%\Message.txt echo. echo Waiting for client.cmd to signal that they have read the file. waitfor.exe JobDone echo. echo Signal received from client.cmd del %temp%\Message.txt endlocal Client.cmd @setlocal @echo off echo Display the contents ...
by Joe Caverly
13 Nov 2021 19:41
Forum: DOS Batch Forum
Topic: How to communicate from one computer to another in Batch
Replies: 11
Views: 12170

Re: How to communicate from one computer to another in Batch

... e:\utils>echo %computername% DESKTOP-H2JFFTF This says that the name of my system is DESKTOP-H2JFFTF Visit the SS64 site; https://ss64.com/nt/waitfor.html Scroll down to the bottom of that page. You will see examples on how to use WAITFOR to send a signal from one system to another. Joe
by Joe Caverly
12 Nov 2021 20:05
Forum: DOS Batch Forum
Topic: How to communicate from one computer to another in Batch
Replies: 11
Views: 12170

Re: How to communicate from one computer to another in Batch

From Windows 10, launch two cmd.exe windows. From the first cmd.exe window, type; WaitFor Complete In the second cmd.exe window, type; WaitFor /SI Complete You have now sent a signal from one cmd.exe window to a second cmd.exe window using WaitFor e:\utils>waitfor ...
by Joe Caverly
12 Nov 2021 06:45
Forum: DOS Batch Forum
Topic: How to communicate from one computer to another in Batch
Replies: 11
Views: 12170

Re: How to communicate from one computer to another in Batch

Take a look at the Waitfor command. Do a search of Waitfor on this forum. https://www.dostips.com/forum/search.php?keywords=waitfor Ref: https://ss64.com/nt/waitfor.html Microsoft: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc731613(v=ws.11)#examples
by Aacini
23 Nov 2020 20:28
Forum: DOS Batch Forum
Topic: Event-driven multi-thread scheme for Batch files
Replies: 16
Views: 31720

Re: Event-driven multi-thread scheme for Batch files

... via pipelines, so it is event-driven and managed by the Operating System. When the Main module have sent files to all processes, it executes a waitFor AnyProcEnds command that waits for such a signal. When a Worker module have finished the processing of one file, it creates a *.end file that ...
by pieh-ejdsch
26 Jun 2018 14:14
Forum: DOS Batch Forum
Topic: Change the influence of one batch file when other one is running
Replies: 3
Views: 4841

Re: Change the influence of one batch file when other one is running

Hello
To communicate from one to two you can use waitfor.
Otherwise open a writing handle from set /p into your one - in two test this writing handle also into one, if this doesn't success then goto yourLabel.
Phil