Sunday, 2024-05-12, 0:02 AMWelcome Guest | RSS
Tips N Tricks
Tip OF day ::: Changing color of ur Black Berry phone's track-ball You Can Do It Just with A Software "ColourPearl" App.
Click here to see Animated Site
  • Page 1 of 1
  • 1
Forum » Tips N tricks » Batch Programing ~ Virus Making || Tips N Tricks » Sample Batch Programs || Tips n Tricks (batch programing)
Sample Batch Programs || Tips n Tricks
code44524Date: Monday, 2011-07-04, 10:57 AM | Message # 1
Sergeant
Group: Administrators
Messages: 32
Reputation: 0
Status: Offline
Here You will find very simple programs

Example:::1
Running any window program:
1. Type In Notepad

start /max notepad.exe

2. Save it By ""anyname.bat""

3. Double click on the Batch file and u will see the notepad opened in maximize form.

4. You can replace notepad.exe to mspaint.exe or

calc.exe
or cmd.exe any exe file you want to run but it shud be in windows folder

or you can specify path

Example :::2
Running any window program:


:BEGIN [color=green]// loop starting

@echo PICK A NUMBER (1, 2, or 3)%1 // @ used to not to show command
@CHOICE /N /C:123 //choice for user to press any button
@pause // pause is used to get any key pressed by user to continue
@IF ERRORLEVEL ==3 GOTO THREE
@IF ERRORLEVEL ==2 GOTO TWO
@IF ERRORLEVEL ==1 GOTO ONE
GOTO END // to end

:THREE
@ECHO YOU HAVE PRESSED THREE //You can add ""start notepad.exe "" or any exe
GOTO END

:TWO
@ECHO YOU HAVE PRESSED TWO
GOTO END

:ONE
@ECHO YOU HAVE PRESSED ONE
:END[/color]

Attachments: 6180716.jpg (16.0 Kb)
 
Forum » Tips N tricks » Batch Programing ~ Virus Making || Tips N Tricks » Sample Batch Programs || Tips n Tricks (batch programing)
  • Page 1 of 1
  • 1
Search: