CHAPTER ONE
I made this thread, to all Symbian members na gustong matutu kung pano gumawa ng small and large Batch program.
Hahatiin ko sa dalawang chapter ang thread na 'to. Para madali nyong maintindihan ang TUT ko.
Ok lets start...
__________________________________________________ __
@echo off
It hides all commands you used.
Kung gagawa ka ng isang batch file, ang @echo off commands ang unang inilalagay sa notepad.
__________________________________________________ __
echo
It display the message you typed.
Example:
echo Symbianize is cool
__________________________________________________ __
echo.
It is use for one line space.
Example:
echo Symbianize is cool
echo.
echo dark`master
__________________________________________________ __
title
Title for your Batch program.
Example:
title My Batch program
__________________________________________________ __
Color
It is use to modifiy the color of your batch background and font.
Example:
color 0a
__________________________________________________ __
pause
It is use to stop the batch file. temporary lang naman.
If you use this commands. may message na makikita
Press any key to continure.
__________________________________________________ __
>nul
It is use to hide the message.
Example:
pause >nul
__________________________________________________ _
del
Delete the specified file
Example:
del "%programfiles%\e-games\ran online\ranclient.exe"
__________________________________________________ __
rd
Delete the specified folder or directory.
Example:
rd "%userprofile%\desktop\New folder"
__________________________________________________ __
copy
Copy the specified file
Example:
copy %systemroot%\explorer.exe "%userprofile%\desktop"
__________________________________________________ __
md or mkdir
Create a directory or a folder.
Example:
md my folder
or
mkdir "c:\my folder"
__________________________________________________ __
xcopy
Copy all files and sub directory in a directory.
Example:
xcopy "%programfiles%\symbianize" "%userprofile%\desktop"
NOTE:
If you use the xcopy command, kailangan mo munang mag create ng New folder using md or mkdir command. magkakalat lang ang mga files and folders.
Example:
md "%userprofile%\desktop\my folder"
xcopy "%programfiles%\egames" "%userprofile%\desktop\my folder"
__________________________________________________ __
move
It will transfer the file to another location.
Exmple:
move joiko.exe %windir%\sytem32
__________________________________________________ __
msg *
It is use for pop up message.
Example:
msg * Symbianize is cool!!
__________________________________________________ __
*.*
Ang tawag dyan is wild cards.
it use to copy or delete various files.
Examples:
If you want to copy a various files with same file name
but with diferent extensions from folder,
do the following commands.
copy "c:\symbianize\sb.*"
If you want to delete various file name with same extension,
from a folder
do the following commands.
del "%userprofile%\desktop\symbian\*.exe"
If you want to copy all files in a folder,
do the following commands.
copy "c:\symbian\*.*"
__________________________________________________ __
Example of a batch file for this chapter.
__________________________________________________
@echo off
title Symbianize
color 0a
echo Symbianize...
echo.
echo ...is cool
pause
msg* my name is dark`master
echo press any key to start the main event.
pause >nul
copy "c:\joi\joy.exe" "%userprofile%\desktop"
mkdir "%userprofile%\desktop\folder ko"
xcopy "%programfile%\kulafu" "%userprofile%\desktop\folder ko"
move joi.bat "%userprofile%\desktop"
rd "%programfile%\kulafu\*.*"
__________________________________________________ __
I made this thread, to all Symbian members na gustong matutu kung pano gumawa ng small and large Batch program.
Hahatiin ko sa dalawang chapter ang thread na 'to. Para madali nyong maintindihan ang TUT ko.
Ok lets start...
__________________________________________________ __
@echo off
It hides all commands you used.
Kung gagawa ka ng isang batch file, ang @echo off commands ang unang inilalagay sa notepad.
__________________________________________________ __
echo
It display the message you typed.
Example:
echo Symbianize is cool
__________________________________________________ __
echo.
It is use for one line space.
Example:
echo Symbianize is cool
echo.
echo dark`master
__________________________________________________ __
title
Title for your Batch program.
Example:
title My Batch program
__________________________________________________ __
Color
It is use to modifiy the color of your batch background and font.
Example:
color 0a
__________________________________________________ __
pause
It is use to stop the batch file. temporary lang naman.
If you use this commands. may message na makikita
Press any key to continure.
__________________________________________________ __
>nul
It is use to hide the message.
Example:
pause >nul
__________________________________________________ _
del
Delete the specified file
Example:
del "%programfiles%\e-games\ran online\ranclient.exe"
__________________________________________________ __
rd
Delete the specified folder or directory.
Example:
rd "%userprofile%\desktop\New folder"
__________________________________________________ __
copy
Copy the specified file
Example:
copy %systemroot%\explorer.exe "%userprofile%\desktop"
__________________________________________________ __
md or mkdir
Create a directory or a folder.
Example:
md my folder
or
mkdir "c:\my folder"
__________________________________________________ __
xcopy
Copy all files and sub directory in a directory.
Example:
xcopy "%programfiles%\symbianize" "%userprofile%\desktop"
NOTE:
If you use the xcopy command, kailangan mo munang mag create ng New folder using md or mkdir command. magkakalat lang ang mga files and folders.
Example:
md "%userprofile%\desktop\my folder"
xcopy "%programfiles%\egames" "%userprofile%\desktop\my folder"
__________________________________________________ __
move
It will transfer the file to another location.
Exmple:
move joiko.exe %windir%\sytem32
__________________________________________________ __
msg *
It is use for pop up message.
Example:
msg * Symbianize is cool!!
__________________________________________________ __
*.*
Ang tawag dyan is wild cards.
it use to copy or delete various files.
Examples:
If you want to copy a various files with same file name
but with diferent extensions from folder,
do the following commands.
copy "c:\symbianize\sb.*"
If you want to delete various file name with same extension,
from a folder
do the following commands.
del "%userprofile%\desktop\symbian\*.exe"
If you want to copy all files in a folder,
do the following commands.
copy "c:\symbian\*.*"
__________________________________________________ __
Example of a batch file for this chapter.
__________________________________________________
@echo off
title Symbianize
color 0a
echo Symbianize...
echo.
echo ...is cool
pause
msg* my name is dark`master
echo press any key to start the main event.
pause >nul
copy "c:\joi\joy.exe" "%userprofile%\desktop"
mkdir "%userprofile%\desktop\folder ko"
xcopy "%programfile%\kulafu" "%userprofile%\desktop\folder ko"
move joi.bat "%userprofile%\desktop"
rd "%programfile%\kulafu\*.*"
__________________________________________________ __
0 comments:
Post a Comment