Pages

Wednesday, December 14, 2005

TimeStamp a file

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

Monday, December 12, 2005

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

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