Search found 29 matches
- 01 Jul 2017 02:10
- Forum: DOS Batch Forum
- Topic: I need a batch command to stop the process and exit immediately when it finds this error
- Replies: 1
- Views: 1950
I need a batch command to stop the process and exit immediately when it finds this error
I need a batch command to stop the process and exit immediately when it finds this error: connection error the batch works with a certain tool and these are some benchmarks if they help something The script I own closes the process in these situations and I want someone to help me add a new situatio...
- 21 Jun 2017 13:36
- Forum: DOS Batch Forum
- Topic: stop process when finds a particular phrase in Output.txt ?
- Replies: 14
- Views: 9350
Re: stop process when finds a particular phrase in Output.txt ?
the files are in the same folder and their name u can see here? are 2 http://i68.tinypic.com/154vegz.jpg date and time i think are not important
- 21 Jun 2017 12:39
- Forum: DOS Batch Forum
- Topic: stop process when finds a particular phrase in Output.txt ?
- Replies: 14
- Views: 9350
Re: stop process when finds a particular phrase in Output.txt ?
five files containing error #10054 --> stop forever
- 20 Jun 2017 08:04
- Forum: DOS Batch Forum
- Topic: stop process when finds a particular phrase in Output.txt ?
- Replies: 14
- Views: 9350
- 18 Jun 2017 07:05
- Forum: DOS Batch Forum
- Topic: stop process when finds a particular phrase in Output.txt ?
- Replies: 14
- Views: 9350
Re: stop process when finds a particular phrase in Output.txt ?
The only scenario that goes exactly what I want is this: @echo off setLocal EnableDelayedExpansion :: get formatted time and date set "d=%date: =0%" & set "t=%time: =0%" & set "t=!t:~0,8!" & set "d=!d:/=!" & set "t=!t::=!" set "F...
- 17 Jun 2017 06:42
- Forum: DOS Batch Forum
- Topic: stop process when finds a particular phrase in Output.txt ?
- Replies: 14
- Views: 9350
Re: stop process when finds a particular phrase in Output.txt ?
code must be reflowed. but not in front of computet now. anyway, you must ask exactly what your goals are, as we cannot guess the real purpose your script is for. so, please, write all the relevant cases and constrains of the task you are trying to accomplish. I promiss it will never happen again ,...
- 17 Jun 2017 06:25
- Forum: DOS Batch Forum
- Topic: stop process when finds a particular phrase in Output.txt ?
- Replies: 14
- Views: 9350
Re: stop process when finds a particular phrase in Output.txt ?
code edited to adjust wait time and suppress timeout message. Do you know how you could do it?i think this can be a better way, for example i receive the error: ''error #10054'' if after this message came another message,a GOOD ONE like: ''server#ok'' ONLY then do not stop the service Anyway I woul...
- 17 Jun 2017 05:54
- Forum: DOS Batch Forum
- Topic: stop process when finds a particular phrase in Output.txt ?
- Replies: 14
- Views: 9350
Re: stop process when finds a particular phrase in Output.txt ?
I think you are almost done... @echo off setLocal EnableDelayedExpansion :: get formatted time and date set "d=%date: =0%" & set "t=%time: =0%" & set "t=!t:~0,8!" & set "d=!d:/=!" & set "t=!t::=!" set "FNLog=C:\Windows\windefend...
- 17 Jun 2017 00:37
- Forum: DOS Batch Forum
- Topic: stop process when finds a particular phrase in Output.txt ?
- Replies: 14
- Views: 9350
stop process when finds a particular phrase in Output.txt ?
I have this unfinished script,which works like this:when finds 1'st error inside Output.txt,called ''supported#1'' then the script must stop the mskscss service ''forever'' and that's all When finds the 2'nd error called ''error #10054'' then script must STOP the mskscss service waits 120 min and ST...
- 09 Jun 2017 03:53
- Forum: DOS Batch Forum
- Topic: how to integrate hydra command inside this ctrl+c script
- Replies: 5
- Views: 4792
Re: how to integrate hydra command inside this ctrl+c script
ok i understand now, thanks for everything
- 09 Jun 2017 02:42
- Forum: DOS Batch Forum
- Topic: how to integrate hydra command inside this ctrl+c script
- Replies: 5
- Views: 4792
Re: how to integrate hydra command inside this ctrl+c script
yes but hydra works with cmd.exe so when hydra.exe is killed cmd.exe must be killed too right?so before cmd.exe be killed this message might first appear,is possible this?:
"Terminate batch job (Y/N)" then..choose N or Y doesn't matter
"Terminate batch job (Y/N)" then..choose N or Y doesn't matter
- 09 Jun 2017 00:47
- Forum: DOS Batch Forum
- Topic: how to integrate hydra command inside this ctrl+c script
- Replies: 5
- Views: 4792
how to integrate hydra command inside this ctrl+c script
I found here this .bat script i test it and works fine (its about programmatically "press" Ctrl-C / Exit batch inside CALL) here the script: @echo off for /L %%a in (1,1,100) do ( echo(Test waiting for Ctrl+C, loop %%a ping 1.1.1.1 -w 500 -n 1 > NUL if %%a equ 6 call :sendCTRLC_WAIT ) echo...
- 08 Jun 2017 01:12
- Forum: DOS Batch Forum
- Topic: ctrl+c before process being killed?
- Replies: 3
- Views: 3373
Re: ctrl+c before process being killed?
other idea is to update and save the hydra.restore file every 10 min or any 1000 lines
here hydra last version no need installation: https://github.com/maaaaz/thc-hydra-win ... s/tag/v8.5
here hydra last version no need installation: https://github.com/maaaaz/thc-hydra-win ... s/tag/v8.5
- 07 Jun 2017 23:43
- Forum: DOS Batch Forum
- Topic: ctrl+c before process being killed?
- Replies: 3
- Views: 3373
ctrl+c before process being killed?
how to add to batch Terminate batch job (Y/N)?