Стартовый пул
This commit is contained in:
17
bgracontrols/winmake/copyfile.bat
Normal file
17
bgracontrols/winmake/copyfile.bat
Normal file
@@ -0,0 +1,17 @@
|
||||
@echo off
|
||||
if "%~1" == "" goto argument
|
||||
if "%~2" == "" goto argument
|
||||
setlocal
|
||||
set FILENAME=%1
|
||||
set FILENAME=%FILENAME:/=\%
|
||||
set DESTINATION=%2
|
||||
set DESTINATION=%DESTINATION:/=\%
|
||||
copy /y %FILENAME% %DESTINATION%
|
||||
exit /b 0
|
||||
|
||||
:argument
|
||||
echo Copies a file to the specified destination.
|
||||
echo Usage: copyfile [FILENAME] [DESTINATION]
|
||||
exit /b 1
|
||||
|
||||
|
14
bgracontrols/winmake/remove.bat
Normal file
14
bgracontrols/winmake/remove.bat
Normal file
@@ -0,0 +1,14 @@
|
||||
@echo off
|
||||
if "%~1" == "" goto argument
|
||||
setlocal
|
||||
set FILENAME=%1
|
||||
set FILENAME=%FILENAME:/=\%
|
||||
if exist %FILENAME% del /f /q %FILENAME%
|
||||
exit /b 0
|
||||
|
||||
:argument
|
||||
echo Removes a file if it exists.
|
||||
echo Usage: remove [FILENAME]
|
||||
exit /b 1
|
||||
|
||||
|
14
bgracontrols/winmake/removedir.bat
Normal file
14
bgracontrols/winmake/removedir.bat
Normal file
@@ -0,0 +1,14 @@
|
||||
@echo off
|
||||
if "%~1" == "" goto argument
|
||||
setlocal
|
||||
set DIRNAME=%1
|
||||
set DIRNAME=%DIRNAME:/=\%
|
||||
if exist %DIRNAME% rd /s /q %DIRNAME%
|
||||
exit /b 0
|
||||
|
||||
:argument
|
||||
echo Removes a directory and all its content if it exists.
|
||||
echo Usage: removedir [DIRNAME]
|
||||
exit /b 1
|
||||
|
||||
|
Reference in New Issue
Block a user