This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/eddat/bindvi.bat

16 lines
309 B
Batchfile
Raw Permalink Normal View History

@echo off
if [%1] == [] goto usage
set __exe__=%WATCOM%\binw\vi.exe
if [%2] == [] goto skipexe
set __exe__=%2
:skipexe
if not exist %1 goto usage
if not exist %__exe__% goto usage
echo %1 > edbind.dat
type skel.dat >> edbind.dat
edbind %__exe__%
goto done
:usage
@echo Usage: bindvi [config file] [exe]
:done