Visit Our New Site

Friday, 4 February 2011

Batch codes for beginners

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!Ashamed





btw i could post alot more but they were kinda dangerous AshamedXD ( of those bb pc types 8-s )

( this was not leeched or copied elsewhere :wink: )

btw edit and added process kill for prophet =]


hope you liked it

0 comments:

Post a Comment