A
A
Andrey Sobolev2020-06-07 00:41:35
bash
Andrey Sobolev, 2020-06-07 00:41:35

Can anyone help translate Bash to Bat?

for file in $(ls module); do
        echo $file
        then
            cd module/$file
            php ../../vendor/bin/templatemap_generator.php -o ../../data/cache/map/"$file"_template_map.php -w
            cd ../../
done

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xotkot, 2020-06-07
@andrufka46rus

there is such a thing Bash to Bat Converter , but it is rather limited and is unlikely to be suitable for complex cases

C
CityCat4, 2020-06-07
@CityCat4

It's impossible. bash has a lot more options than bat. Unless to translate into PS/VBS.
In addition, there is an error in the script - then is completely out of business here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question