N
N
Nicelogin2017-05-23 09:03:13
PHP
Nicelogin, 2017-05-23 09:03:13

How to write bat file with condition check and ping command?

How to write a batch file that would look to see if the ping condition is met and if not, then run the program from the directory. To make it happen hidden from the user.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladislav Vlastovskiy, 2018-08-17
@Get_Nick

Без комментариев...

<?php
require __DIR__ . '/vendor/autoload.php';

$instagram = new \InstagramScraper\Instagram();

N
Nikmedbers, 2017-05-23
@Nicelogin

Hidden by standard means will not work. There are only two options:
1. Use a bat to cmd converter program, in the settings of which you can set invisible. For example, Bat To Exe Converter
2. Run for execution not the bat itself, but the program in which the bat script is specified as a parameter. The program hides the console window. For example cmdow, hidec, hidcon.

O
Olgeir, 2017-05-23
@Olgeir

ping 1.1.1.1 -n 1 1>nul 2>nul && echo YES

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question