468x60 Ads

SUBSCRIBES MY BLOG


.

Thursday, August 5, 2010

The Real Size of Your Hard Disk or Flash Drive

hi there,

Do you ever Bought harddisk or flashdrive/thumbdrive at the computer shop...??
what size that hard disk or flashdrive...?? 1GB? 2GB? 80GB? 160GB? 250GB? 1TB?

when you attach your Harddisk/flashdrive on the computer,did you notice that your harddisk or flashdrive size, it not enough from the real size that you bought...here you are not being cheated or that device is corrupted...

OK now i will explain in detail what is happen..





Look at the picture above, it show the size of harddisk on partition
kecik88[G:\] is 37.27GB = 40GB(if we bought from computer shop)...

How the calculation:-

40GB = is a DECIMAL number(we read using basic number) while
37.27GB = is a BINARY number(the computer read using binary number)

40GB x 0.931323 = 37.25292GB
80GB x 0.931323 = 74.50584GB
120GB x 0.931323 = 111.75876GB
160GB x 0.931323 = 149.01168GB
250GB x 0.931323 = 232.83075GB
320GB x 0.931323 = 298.02336GB
500GB x 0.931323 = 465.6615GB
750GB x 0.931323 = 698.49225GB
1024GB(1TB) x 0.931323 = 953.674752GB


For Thunmbdrive/flashdrive

128MB x 0.931323 = 119.209344MB
256MB x 0.931323 = 238.418688MB
512MB x 0.931323 = 476.837376MB
1024MB(1GB) x 0.931323 = 953.674752MB
2GB x 0.931323 = 1.862646GB
4GB x 0.931323 = 3.725292GB
8GB x 0.931323 = 7.450584GB

For the vice versa calculation is:-

7.45GB x 1.073741 = 7.99937045(need to rounded to = 8GB)
1.86GB x 1.073741 = 1.99715826(need to rounded to = 2GB)
232GB x 1.073741 = 249.107912 (need to rounded to = 250GB)
and so on....

how can get the number 0.931323 and 1.073741..??

ok how can it get the number 0.931323 and 1.073741...

here the calculation:-

1024^3 = 1.073.741.824
1024^-3 = 9.313225746(need to rounded to 931323)

ok did you understand now..? the number 1024 is a change between measure....
Why ^3 and ^-3 is
conversion from GB-->MB-->KB(this is for ^3) or conversion vice versa from KB-->MB-->GB(this is for ^-3)

^3 = conversion from BINARY to DECIMAL
^-3 = conversion from DECIMAL to BINARY

example for ^3 is 1.073741:-
37.25 x 1.073741 = 39.99685225(rounded to 40GB)

example for ^-3 is .931323:-
40 x 931323 = 37.252920GB


Note...
^ =power(in mathematics)

so this is the knowledge i has learn...i just want to share with you all.....
NOTE : - Please Give a credit to my blog if you take the idea from this blog. Peace:-)

Make your own Task Manager with batch file

Please open your notepad and copy the code below

-----------------------Code--------------------------------------------------------------------
@echo off
mode 33,25
setlocal ENABLEDELAYEDEXPANSION
Title Process Manager
:Begin
CD /D "!TEMP!"
set "TASKLIST=%windir%\system32\tasklist.exe"
set "FIND=%windir%\system32\find.exe"
set "wmic=%windir%\System32\Wbem\wmic.exe"
set "Explore=%windir%\explorer.exe"

:Reload
cls
set num=0
echo.________________________________
echo.[ Process Name ] [ PID ]
echo.--------------------------------
if not defined NAME set NAME=%USERNAME%
!TASKLIST! /FI "USERNAME eq !NAME!" /FO TABLE /NH >"plist.txt"
for /f "tokens=*" %%a in (plist.txt) do (
set /a num+=1
set "list=%%a"
set "list=!list:~0,32!"
echo.!list!
)
echo.________________________________
Del /f /q "plist.txt" >nul 2>&1
Title !NAME! - [!num!] Process Running.
if not defined ac (
if /i "!NAME!"=="%USERNAME%" goto :USR
if /i "!NAME!"=="SYSTEM" goto :SYS
)
if /i "!ac!"=="K" goto :Kill
if /i "!ac!"=="S" goto :SYSTEM
if /i "!ac!"=="U" goto :USER
if /i "!ac!"=="E" goto :Explore
set "ac="
GOTO :Reload

:USER
set "NAME="
set "ac="
GOTO :Reload
:USR
echo.CH : K=Kill, S=System, E=Explore
set /p "ac=Action : "
GOTO :Reload

:SYSTEM
set NAME=SYSTEM
set "ac="
GOTO :Reload
:SYS
echo.CH : K=Kill, U=User, E=Explore
set /p "ac=Action : "
GOTO :Reload

:Kill
echo.Type PID to Kill..
set "ac="
set /p "PID=PID : "
if not defined PID goto :Reload
Taskkill /F /PID !PID! >nul 2>&1
if errorlevel 1 (echo.No Task Running w/ this PID.) else (
if !PID! geq 0 if !PID! lss 10 (
echo.Can't kill Critical Process
goto :clr_var2
) else (
echo.Success : Task with PID=!PID!
echo. has been KILLED..
))
:clr_var2
set "ac="
set "PID="
PAUSE>NUL
GOTO :Reload

:Explore
echo.Type PID to Explore..
set "ac="
set /p "PID=PID : "
if not defined PID goto :Reload
if !PID! lss 10 goto :clr_var
if !PID! gtr 10000 goto :clr_var
!wmic! process get ProcessID,ExecutablePath >"path.txt"
for /f "tokens=1,2 delims= " %%a in ('type "path.txt" ^| !FIND! " !PID! "') do (
set "exepath=%%~dpa"
)
if not defined exepath (
echo.No Task Running w/ this PID.
PAUSE>NUL
) else (START !Explore! "!exepath!")
:clr_var
set "PID="
set "exepath="
Del /f /q "path.txt" >nul 2>&1
GOTO :Reload

:END
----------------------------End CODE-------------------------------------------------------

then paste to your notepad and save as "Task Manager.bat"

NOTE : - Please Give a credit to my blog if you take the idea from this blog. Peace:-)