Batch codes for beginners
example:
Loop ( repeat )
Note: you can replace x with anything you want.
example:
Copy a file
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:
Kill a process
example:
Delete a file
Note: you can replace 2.txt with anything you like.
example:
Add to registry
example:
Note: REG_DWORD is a registry type so don't change that!
btw i could post alot more but they were kinda dangerous ( of those bb pc types )
( this was not leeched or copied elsewhere :wink: )
btw edit and added process kill for prophet =]
hope you liked it
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
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
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!
btw i could post alot more but they were kinda dangerous ( of those bb pc types )
( this was not leeched or copied elsewhere :wink: )
btw edit and added process kill for prophet =]
hope you liked it