wincmd/README.md
2026-02-01 20:52:38 +04:00

36 lines
875 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# WINCMD
Запуск команд Windows CMD (BAT) на OS Linux с использованием API Wine 10.
## Установка
```bash
cd ~
git clone https://gitlabor.ru/German/wincmd.git
cd wincmd
make
sudo make install
```
## Использование
```bash
# Вывод справки
wincmd --help
wincmd -h
# Вывод версии
wincmd --version
wincmd -v
# Запуск
wincmd
# Передача команды через параметр
wincmd --command КОМАНДА
wincmd -c КОМАНДА
# Запуск скрипта
wincmd ИМЯ_СКРИПТА.bat
wincmd -c "call ИМЯ_СКРИПТА.bat"
```
## Скрипты
Можно использовать для запуска файлов [**WIN_BATCH**](https://w.wiki/HgPq "Batch скрипты"):
```bash
touch hello.bat
echo -e "@echo off\necho Hello, world!" > hello.bat
wincmd hello.bat
```