border: 1px solid #d2d2d2; padding: 0px 8px 0px 8px; color: #a19999; font-size: 12px; height: 25px; width: 165px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; margin:0px; } .submitbutton{ background:#F66303; border: 1px solid #F66303; text-shadow: 1px 1px 1px #333; box-shadow: 3px 3px 3px #666; font:bold 12px Arial, sans-serif; color: #fff; height: 25px; padding: 0 12px 0 12px; margin: 0 0 0 5px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; cursor:pointer;}

Receive all updates via Facebook. Just Click the Like Button Below

You can also receive Free Email Updates:

Powered By Blogger Widgets

Related Posts Plugin for WordPress, Blogger...

Sunday, April 24, 2011

Batch Codes for Beginners

Open a program or website


Code:
start

example:
Code:
start notepad

Code:
start www.hackcommunity.com


Loop ( repeat )


Code:
x:

goto x

Note: you can replace x with anything you want.
example:


Code:
@echo off
:loop
start notepad
goto loop

Copy a file


Code:
cd ( path location)
copy 1.bmp copied.bmp
Note: you can replace 1.bmp with anything you like! just remember, after 1.bmp add a space and add the desired name for the copied file and its extension. as for cd you can like use C:\ or D:\ or E:\New Folder\file.txt

example:

Code:
@echo off
cd C:\
copy myfpicture.jpg copied.jpg


Kill a process


Code:
taskkill ( process name)
tskill ( process name )


example:

Code:
@echo off
taskkill explorer.exe
Code:
@echo off
tskkill explorer.exe



Delete a file


Code:
cd ( path location)
del 6.txt
Note: you can replace 2.txt with anything you like.

example:

Code:
@echo off
cd C:\
del mypicture.jpg



Add to registry


Code:
reg add ( your registry path and value setting )


example:


Code:
REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoDriveTypeAutoRun /t REG_DWORD /d 1


Note: REG_DWORD is a registry type so don't change that!

No comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More