windows XP CLI

ADDUSERS Add or list users to/from a CSV file
ARP Address Resolution Protocol
ASSOC Change file extension associations•
ASSOCIAT One step file association
ATTRIB Change file attributes
b
BOOTCFG Edit Windows boot settings
BROWSTAT Get domain, browser and PDC info

Read More......

Cronology of windows and now what ...?

Since the beginning of computer and operating system, windows has made a lot of changes in our life read this wiki for brief history and windows chronology and their latest rummer on windows 8 or whatever it's code name is....

http://en.wikipedia.org/wiki/History_of_Microsoft_Windows


it takes me quite a while to adapt the windows Vista or so called windows 7 or some call this vista thinggy windows 7 Service Pack 2. call it whatever you want it.. but it just still like window Vista when I use windows 7.

however i'm having trouble using Vista because I really gotten use with windows XP. Anyway, browser still feel just like it cause i normally use firefox, chrome.
Also still feeling ackward when setting up wifi things.. feel ain't just right.

hope windows 8 give a good and friendly, when i'm talking about friendly, it really mean friendly.... like a just a click and you done and it just connect to internet... that's it!!! Read More......

"process hacker" advance window task manager

http://processhacker.sourceforge.net/

download : http://sourceforge.net/projects/processhacker/files/processhacker/processhacker-1.5/processhacker-1.5-setup.exe/download

the good thing about this software ;
- you can see hidden process, just like the hijack software
- you can get alert for new process created or executed.
- and continues netstat alike status XD, good for monitoring what is connecting between you and the internet
- it also got services controller just like the services.msc.

the no good is ;
- it doesn't load automatically, so you need to do script yoursefl under startup, or edit the regedit for the startup script Read More......

USB unlocker apabila storage disk ada masalah access atau format

Setiap kali virus infect kat sistem kita, bila mok bukak USB macam hard disk, externel disk, mp3 usb, mmc ka .. whatever la, kita sik pat access or delete or write.... walaupun virus dah di clean oleh antivirus. Mun disk ya kenak locked walaupun kita administrator.

Ada beberapa software untuk unlock antara program ya "Unlock Disk". Leh cuba download software tok kat http://ldcmx.info/unlockdisk.php.

Aaaaa walaupun kitakorang dah fdisk, parted, pasya cuba format...... sik pat juak, even though bila masuk usb, mmc terus nya suruh format so try lah download file unlock disk ya.... aku lum try ya.. tapi mun sesiapa dah try , left comment kat dibah tok, okey..I'll tell what the resul bila ada masa cuba untuk molah... Read More......

Penukaran basic DOS Batch

Nukar DOS Batch file ke Shell scripts pakei *nix


Jadual kat dibah tok Batch file pakei keywords / variables /operators ngan persamaan makei shell.
Batch File OperatorShell Script EquivalentMeaning
%$command-line parameter prefix
/-command option flag
\/directory path separator
===(equal-to) string comparison test
!==!!=(not equal-to) string comparison test
||pipe
@set +vdo not echo current command
**filename "wild card"
>>file redirection (overwrite)
>>>>file redirection (append)
<<redirect stdin
%VAR%$VARenvironmental variable
REM#comment
NOT!negate following test
NUL/dev/null"black hole" for burying command output
ECHOechoecho (many more option in Bash)
ECHO.echoecho blank line
ECHO OFFset +vdo not echo command(s) following
FOR %%VAR IN (LIST) DOfor var in [list]; do"for" loop
:LABELnone (unnecessary)label
GOTOnone (use a function)jump to another location in the script
PAUSEsleeppause or wait an interval
CHOICEcase or selectmenu choice
IFifif-test
IF EXIST FILENAMEif [ -e filename ]test if file exists
IF !%N==!if [ -z "$N" ]if replaceable parameter "N" not present
CALLsource or . (dot operator)"include" another script
COMMAND /Csource or . (dot operator)"include" another script (same as CALL)
SETexportset an environmental variable
SHIFTshiftleft shift command-line argument list
SGN-lt or -gtsign (of integer)
ERRORLEVEL$?exit status
CONstdin"console" (stdin)
PRN/dev/lp0(generic) printer device
LPT1/dev/lp0first printer device
COM1/dev/ttyS0first serial port

DOS commands ngan persamaan UNIX
DOS CommandUNIX EquivalentEffect
ASSIGNlnlink file or directory
ATTRIBchmodchange file permissions
CDcdchange directory
CHDIRcdchange directory
CLSclearclear screen
COMPdiff, comm, cmpfile compare
COPYcpfile copy
Ctl-CCtl-Cbreak (signal)
Ctl-ZCtl-DEOF (end-of-file)
DELrmdelete file(s)
DELTREErm -rfdelete directory recursively
DIRls -ldirectory listing
ERASErmdelete file(s)
EXITexitexit current process
FCcomm, cmpfile compare
FINDgrepfind strings in files
MDmkdirmake directory
MKDIRmkdirmake directory
MOREmoretext file paging filter
MOVEmvmove
PATH$PATHpath to executables
RENmvrename (move)
RENAMEmvrename (move)
RDrmdirremove directory
RMDIRrmdirremove directory
SORTsortsort file
TIMEdatedisplay system time
TYPEcatoutput file to stdout
XCOPYcp(extended) file copy

Batch nok simple macam sample

@ECHO OFF
ECHO.
ECHO TOk Sample ajak. Taruh masej kitakorang kat sitok
ECHO.
PAUSE
CLS
EXIT

copy paste batch kat atas tok pasya edit kat notepad dan save as nama_file.bat, execute file ya tengok output lepasya. Pastikan file extension ya bukan *.txt


contoh seterusnya batch buang cookies dari IE.

WINNT

@ECHO OFF
ECHO ***************************************************
ECHO ** batch makei delete cookies nok sik diperlukan **
ECHO ***************************************************

del /Q c:\docume~1\alluse~1\Cookies\*.*
REM Change alluse~1 in the above line to your userID
del /q c:\winnt\temp\*.*
del /q c:\temp\*.*
del /q c:\winnt\Recent\*.*
del /q c:\*.chk
EXIT



Tambah line dibah tok pakei winXP


del /q C:\Windows\Temp\Adware\*.*
del /q C:\Windows\Temp\History\*.*
del /q C:\Windows\Temp\Tempor~1\*.*
del /q C:\Windows\Temp\Cookies\*.*



Kat dibah tok contoh molah batch file kat dalam DOS makei syntax IF, FIND, GOTO, EXITO.

VIEWDATA.BAT: DOS Batch File
REM VIEWDATA

REM INSPIRED BY AN EXAMPLE IN "DOS POWERTOOLS"
REM BY PAUL SOMERSON


@ECHO OFF

IF !%1==! GOTO VIEWDATA
REM IF NO COMMAND-LINE ARG...
FIND "%1" C:\BOZO\BOOKLIST.TXT
GOTO EXIT0
REM PRINT LINE WITH STRING MATCH, THEN EXIT.

:VIEWDATA
TYPE C:\BOZO\BOOKLIST.TXT | MORE
REM SHOW ENTIRE FILE, 1 PAGE AT A TIME.

:EXIT0

Contoh

viewdata.sh: Shell script dari bVIEWDATA.BAT

#!/bin/bash
# viewdata.sh
# Conversion of VIEWDATA.BAT to shell script.

DATAFILE=/home/bozo/datafiles/book-collection.data
ARGNO=1

# @ECHO OFF Command unnecessary here.

if [ $# -lt "$ARGNO" ] # IF !%1==! GOTO VIEWDATA
then
less $DATAFILE # TYPE C:\MYDIR\BOOKLIST.TXT | MORE
else
grep "$1" $DATAFILE # FIND "%1" C:\MYDIR\BOOKLIST.TXT
fi

exit 0 # :EXIT0

# GOTOs, labels, smoke-and-mirrors, and flimflam unnecessary.
# The converted script is short, sweet, and clean,
#+ which is more than can be said for the original.

Pakei fun stuff kitakorang leh cuba syntax macam contoh dibah tok.

Nunggah program lain
CALL C:\calc.exe

Nunggah batch file nok lain pasya berbalit ke batch nok nunggah bath ya tek.
CALL C:\WINDOWS\NEW_BATCHFILE.BAT

Looping makei GOTO
:BEGIN
REM LOOPING SIK PANDEI RENTI ....
GOTO BEGIN

Sigek agik sampel makei GOTO

@ECHO OFF
:BEGIN
REM LOOPING SIK PANDEI RENTI ....
ECHO..
ECHO.. animasi fun pakei saja - saja.... bagus pakei advertisment dalam BATCH :-)
ECHO..
GOTO BEGIN

IF, IF EXIST, IF NOT EXIST

IF EXIST C:\contoh.txt
DEL C:\contoh.txt

IF NOT EXIST C:\contoh.txt
COPY C:\windows\contoh.txt c:\contoh.txt


Untuk faham macam ne nukar or makei shell script atau bashing dalam *nix, buat rujukan dari internet. Read More......