rem TimeStamp a file
rem this batch file will create date and time variables
rem date var is sDate
rem time var is sTime
rem sDate and sTime should be put at the back of the file to be timestamped
rem the format would be filename_%sDate%_%sTime%
@Echo off
Set CURRDATE=%TEMP%\CURRDATE.TMP
Set CURRTIME=%TEMP%\CURRTIME.TMP
DATE /T > %CURRDATE%
TIME /T > %CURRTIME%
Set PARSEARG="eol=; tokens=1,2,3,4* delims=:/-, "
For /F %PARSEARG% %%i in (%CURRDATE%) Do SET sDate=%%k%%j%%i
Set PARSEARG="eol=; tokens=1,2,3* delims=:/-, "
For /F %PARSEARG% %%i in (%CURRTIME%) Do Set sTime=%%i%%j%%k
Imam Ali Ibn Abi Thalib as
Barangsiapa yang rindu kepada surga, dia akan berpaling dari tuntutan hawa nafsunya.
Barangsiapa yang takut api neraka, dia akan menjauhi hal-hal yang terlarang.
Barangsiapa yang zuhud (tidak rakus) terhadap dunia, dia akan menganggap ringan suatu musibah
Barangsiapa yang bersiap-siap menghadapi kematian, dia akan bersegera melakukan kebaikan
Search
Wednesday, December 14, 2005
Monday, December 12, 2005
UNIX - zip
UNIX : zip
inside directory
zip -R [zipfileneame] [files]
> cd /dump
> zip -R dump.zip cycle1*
Above command will create a zip file named dump.zip.
inside directory
zip -R [zipfileneame] [files]
> cd /dump
> zip -R dump.zip cycle1*
Above command will create a zip file named dump.zip.
MS Windows Reserved words for Security
Brainstorming : MS Windows Reserved words for Security
ms reserved words for devices:
con, prn, aux, clock$, nul, com1, com2, com3, com4, com5, com6, com7, com8, com9, lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8, and lpt9
samples:
mkdir \\.\d:\con
copy \\.\d:\temp\public\wtspd01.20051108.1.sql \\.\d:\con\lpt1.sql
rename \\.\d:\con\lpt1.sql a.sql
ms reserved words for devices:
con, prn, aux, clock$, nul, com1, com2, com3, com4, com5, com6, com7, com8, com9, lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8, and lpt9
samples:
mkdir \\.\d:\con
copy \\.\d:\temp\public\wtspd01.20051108.1.sql \\.\d:\con\lpt1.sql
rename \\.\d:\con\lpt1.sql a.sql
Saturday, December 10, 2005
love is on the way - saigon kick
love is on the way - saigon kick
lonely sidewalks, silent night
bring the evening, deep inside
hold me darlin, touch me now
let the feeling, free tonight
time of season, wipes the tears
no rhyme or reason, no more fears
all the dreaming, far behind
you are here now, everything's alright
and in the morning i'll be gone away
all the things i left behind
if you need me i'll come night or day
lets stop the hands of time
lonely sidewalks, silent night
bring the evening, deep inside
hold me darlin, touch me now
let the feeling, free tonight
time of season, wipes the tears
no rhyme or reason, no more fears
all the dreaming, far behind
you are here now, everything's alright
and in the morning i'll be gone away
all the things i left behind
if you need me i'll come night or day
lets stop the hands of time
Wednesday, November 30, 2005
finally....
Finally.. my first post.... too bad i am not in a good mood.
I had just finished my 'end-of-month' jobs and ready to go home. I read an email this afternoon saying that there will be 'a set of standard policies of Internet & Email usage'. oooougghghh... what a stiff workplace. I can already imagine what's in it. I think it means I can not visit 'fun' sites anymore... just work and more work.. :(
What about emails.. ?? well, I guess I'll read it tomorrow..
I miss my family... especially my son... (don't worry honey, i miss u 2)
I hope this wouldn't be my last post.
I had just finished my 'end-of-month' jobs and ready to go home. I read an email this afternoon saying that there will be 'a set of standard policies of Internet & Email usage'. oooougghghh... what a stiff workplace. I can already imagine what's in it. I think it means I can not visit 'fun' sites anymore... just work and more work.. :(
What about emails.. ?? well, I guess I'll read it tomorrow..
I miss my family... especially my son... (don't worry honey, i miss u 2)
I hope this wouldn't be my last post.
Subscribe to:
Posts (Atom)