J
J
JTester2021-05-31 15:21:26
cmd/bat
JTester, 2021-05-31 15:21:26

What is this team for?

Can you please tell me why and what does this set command do?
I have a start.cmd file, it has this code, let's say

if exist test\gg.php ( 
  set TEST_FILE = test\gg.php
)


What does set do and why specify TEST_FILE? It's a variable, right?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2021-05-31
@vabka

What does set do and why specify TEST_FILE? It's a variable, right?

Yes. set assigns an environment variable.
Why - this is a question for the author of the script.

B
Ba4ana, 2021-06-01
@DckWB

The availability of the test \ gg.php file is checked and the TEST_FILE variable is
assigned

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question