Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cara Mengecek Kapan Terakhir kali File di Edit.
#1
Disini gw bkal ksih coding dri batch gmna cra kta cek kpan trkhir kli file di edit.
Guna nya untuk mengecek apkh virus juga menginjeksi file tsb/tdak.
Trus trang gw dpt nih ilmu dri http://www.dostips.com
so... lngsung aj simak code brikut:

Code:
:: ************************************************************************ :: * File found on http://www.dostips.com under category "DateAndTime" * :: * Originally created at 01/01/2006 * :: * Originally last changed at 22/03/2009 * :: * Edited at 30/09/2010 by GrellesLicht28 * :: * --- New functions: * :: * --- Better overview * :: * --- Sort itself * :: ************************************************************************ @echo off if not "%~0" == "%~nx0" if not "%~0" == "%~n0" TITLE When has which file been changed last time? setlocal EnableExtensions setlocal EnableDelayedExpansion if not "%~1" == "Sortmode" mode con lines=512 :: Change this value to "1" to enable sortmode (takes more time) set Sortmode=0 :: Check if sortmode is activated. If so, it sorts its own output using "sort" if "%~1" == "Sortmode" goto :Startfunction if "%Sortmode%" == "1" ( echo Sortmode activated. echo îîîîîîîîîîîîîîîîîîî ) if "%Sortmode%" == "1" %~nx0 Sortmode|sort /+55 if "%Sortmode%" == "1" goto :Endfunction :Startfunction call:jdate tnow "%date%" for /F "delims=" %%F in ('dir /A /B /S *.*') do ( call:ftime tfile "%%F" set /a diff=tnow-tfile set file=%%~nxF FOR /L %%A IN (2,1,50) DO if "!file:~%%A,1!" == "" set file=!file! FOR /L %%A IN (1,1,3) DO if "!diff:~%%A,1!" == "" set diff= !diff! echo !file! is !diff! days old ) :Endfunction ECHO. if not "%~0" == "%~nx0" if not "%~0" == "%~n0" PAUSE EXIT /B ::----------------------------------------------------------------------------------- ::-- Functions start below here ::----------------------------------------------------------------------------------- :ftime JD filename attr -- returns the file time in julian days :: -- JD [out] - valref file time in julian days :: -- attr [in,opt] - time field to be used, creation/last-access/last-write, see 'dir /?', i.e. /tc, /ta, /tw, default is /tw :: $created 20060101 :$changed 20090322 :$categories DateAndTime :: $source http://www.dostips.com SETLOCAL set file=%~2 set attr=%~3 if not defined attr (call:jdate JD "- %~t2" ) ELSE (for /f %%a in ('"dir %attr% /-c "!file!"|findstr "^^[0-9]""') do call:jdate JD "%%a") ( ENDLOCAL & REM RETURN VALUES IF "%~1" NEQ "" (SET %~1=%JD%) ELSE (echo.%JD%) ) EXIT /b :jdate JD DateStr -- converts a date string to julian day number with respect to regional date format :: -- JD [out,opt] - julian days :: -- DateStr [in,opt] - date string, e.g. "03/31/2006" or "Fri 03/31/2006" or "31.3.2006" :: $reference http://groups.google.com/group/alt.msdos.batch.nt/browse_frm/thread/a0c34d593e782e94/50ed3430b6446af8#50ed3430b6446af8 :: $created 20060101 :$changed 20080219 :: $source http://www.dostips.com SETLOCAL set DateStr=%~2&if "%~2"=="" set DateStr=%date% for /f "skip=1 tokens=2-4 delims=(-)" %%a in ('"echo.|date"') do ( for /f "tokens=1-3 delims=/.- " %%A in ("%DateStr:* =%") do ( set %%a=%%A&set %%b=%%B&set %%c=%%C)) set /a "jj=10000%jj% %%10000,mm=100%mm% %% 100,tt=100%tt% %% 100" set /a JD=tt-32075+1461*(jj+4800+(mm-14)/12)/4+367*(mm-2-(mm-14)/12*12)/12-3*((jj+4900+(mm-14)/12)/100)/4 ENDLOCAL & IF "%~1" NEQ "" (SET %~1=%JD%) ELSE (echo.%JD%) EXIT /b

save d notepad dgn exsistensi batch.
nti bkalan kyk gni kluarnye
[Image: 250103_176749019050231_100001454014165_4...3419_n.jpg]
Code:
#include <brain.h> #include <spirit.h> void kerjaKeras() { read(apa_saja); experiment(apa_saja); learn(apa_saja); } main() { int i; for (i = 0; i < 31337; i ++) { kerjaKeras(); } }


Join in Here : http://www.blackrebelions.ucoz.com/
Reply
#2
move to command line.

thanks for share om Bigsmile
DILARANG KERAS

Quote:0. JUNK
1. POSTING UNTUK MENCARI REFEREAL
2. MEMPOSTING KATA KATA CURHATAN
3. SHOW OFF TANPA POC
4. SPAM
5. JUALAN (Maaf ini bukan Forum Jualan)
Reply
#3
keren kk, tapi ane boleh nanya dikit gk? kan waktu dah di test, yang 0 days old berarti baru di edit ya kk? maap kalo pertanyaannya gk bermutu Huwaa
[Image: siggi.gif]
Reply
#4
yoi 0 day old artinya baru di edit gan.
hahahha
Code:
#include <brain.h> #include <spirit.h> void kerjaKeras() { read(apa_saja); experiment(apa_saja); learn(apa_saja); } main() { int i; for (i = 0; i < 31337; i ++) { kerjaKeras(); } }


Join in Here : http://www.blackrebelions.ucoz.com/
Reply
#5
... Bingung Marah tengkyuuuu wakaka
file ane berarti baru di edit semua wakaka hampir semuanya 0 day wakaka
[Image: siggi.gif]
Reply
#6
apa ni sama dengan date modified klo di exlporer
Reply
#7
yoi gan...
hahahha tpi klo ni lbih lngkap.
Code:
#include <brain.h> #include <spirit.h> void kerjaKeras() { read(apa_saja); experiment(apa_saja); learn(apa_saja); } main() { int i; for (i = 0; i < 31337; i ++) { kerjaKeras(); } }


Join in Here : http://www.blackrebelions.ucoz.com/
Reply
#8
(06-14-2011, 06:24 PM)Blacker_onliners Wrote: yoi gan...
hahahha tpi klo ni lbih lngkap.

oh gtu, yupz pd dasarny bnyak hal yg g bs dilakukan oleh tmpilan visual windows yg hny bs dlkukan dgn command line ^_^
Reply
#9
coba test ya...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Salam sambutan tiap kali login bego-nekat 3 43 09-18-2013, 04:33 PM
Last Post: bego-nekat
  [ask] cara meng-copy file ke folder dan subfolder menggunakan CMD usxr101 2 49 08-22-2013, 10:55 AM
Last Post: usxr101
  [ASK]Cara Mencegah DDOS IP Attack ? KHzDeeps 1 83 07-13-2011, 07:56 PM
Last Post: Wayc0de
  [ask]edit file di terminal Dika_xb 4 67 06-02-2011, 11:15 PM
Last Post: Dika_xb
Wah-yellow_16 yang tau cara uninstal ghost pake DOS plz kasi Coment..Thanks.!! pakTani 3 61 05-24-2011, 06:53 AM
Last Post: black*shadow
  File Searcher dengan batch Blacker_onliners 15 177 04-09-2011, 04:51 PM
Last Post: Blacker_onliners
  Lock Folder With Batch File NatyaOrigami™ 6 103 04-04-2011, 05:50 PM
Last Post: NatyaOrigami™
  [ASK] perintah webshell untuk ekstrak file light 5 39 04-02-2011, 10:37 PM
Last Post: Up_
Sarge_16 Buat File Tersembunyi Dalam file jpg.. linkinfuk 37 555 03-02-2011, 06:32 PM
Last Post: justinisal
  pengertian SQL injection & cara mengimplementasikannya oka1302 23 492 02-14-2011, 11:50 PM
Last Post: Dletes

Forum Jump:


Users browsing this thread: 1 Guest(s)