Skip navigation

The Windows Batch File is simple text file that contains a sequence, or batch of commands. It is mainly useful for storing sets of commands to run one after the other to accomplish a repeated task.

Instead of entering a command and executing it manually every time,
you can easily give the batch file name to execute those commands automatically on command prompt. You can also put few conditions and execute the commands needed.

In DOS (DOS – Disk Operating System) systems the batch files end with .bat or .BAT extension.

The Best known DOS file is AUTOEXE.BAT which initializes DOS when you start the system.

Step 1 : Create a .BAT file

Create a new text document. Double click the file once the file opens select File>save as, and in the save as window, provide you sample name for the batch file and then add the extension .BAT or .bat on the end.
Which ends up creating sample.bat file.

Note: Also you need to check that windows doesn’t stick to the standard .txt format as extension on the end of this sample file.
To check this change the file type from .txt to “all files” as shown in the picture below.

Step 2 : Edit the batch file – Also learn few simple commands here

If you know how to run commands in command prompt then it is very easy.
Here in the batch file what we do is put all the commands in the file and execute them automatically one after the other, rather than typing it one by one manually and wait for the result.
Let’s learn few basic batch commands which will be helpful. Here the advantage it isnot case Sensitive.
Title : The window name for the batch file.
Echo :  The print statement for the batch files. Anything followed by the word ECHO will be displayed in the command prompt as text.
Echo OFF : This is typically used by all the batch programmers at the beginning of their files.  It actually means that the program won’t show the command that you told it to run while it’s running – it will ll just display the command. I would recommend that after you run this sample program, you try removing this line from your code to see what’s the magic of this.
PAUSE: This outputs the “press any key to continue” message.  This is mainly used to make human intervention to continue running the batch file after “Enter” is pressed.
CLS : Clears the DOS Window screen.
PING: Pings an IP, with this we can be able to check whether we are able to connect to it or not. It returns the time taken to ping and by default it tries to ping itself for 3 times.
Here is the sample.bat file code.

Step 3 : Execute the batch file

Go to Start menu and open All Programs > Accessories > Command Prompt or go to run and enter cmd and press enter to open command prompt.
By default Local disk where the operating system installed will by default.
If you type echo “Learner Adda”, then it will be printed.
Go to the directory where the batch file is placed and execute the script in the following way.
C:\> cd learneradda
C:\learneradda\> sample.bat
Then the sample.bat batch file will be executed and result will be printed. Here is the example batch script for your reference.

REM Sample Batch File
REM Author Ramya Makkini
ECHO OFF
ECHO This is a simple batch file created by Learneradda.
echo date
PING http://www.learneradda.blogspot.in
Echo Ping of Learneradda completed

Advertisements

PHP is a popular scripting language now-a-days in web development. Its a recursive acronym for PHP: Hypertext Preprocessor. Its is completely open source and used for general purpose scripting.
Its basically called as a server side scripting language. It is originally derived from PHPPersonal Home Page.

PHP is an alternative to Microsft’s ASP(Active Server Pages). Like in ASP, the PHP script is embedded in a webpage along with HTML. Before the page is sent to a user that has requested it, the webserver calls php to interpret and perform the operations called for in the php script.

The Html file that includes php script is typically given a file name with extension as .php or .php3 or .phtml. Like ASP, it is also thought of as “dynamic HTML pages”, since content will vary based on the results of interpreting the script

 

Here are few advantages of using php

  1. It is mainly helpful to generate a webpage dynamically.
  2. It supports a wide range of databases
  3. Its is used to send mails
  4. It is very helpful in file handling
  5. It also encrypts data
  6. It can be used to control user-access
  7. It can be able to create sessions
  8. It can send and receive cookies
  9. It can collect form data
  10. It is also used to output images, PDF Files, XML etc.

This is a topic that is not very well understood by people who jump into development pool.
PHP frameworks help to promote rapid application development, which saves you time, helps build more stable applications, and reduces the amount of repetitive coding for developers. Frameworks can also help beginners to build more stable apps by ensuring proper database interaction and coding on the presentation layer. This allows you to spend more time creating the actual web application, instead of spending time writing repetitive code and writing the tools for your project.

WHY SHOULD ONE USE A PHP FRAMEWORK ?

 Developers should utilize PHP frameworks for various reasons, but the number one reason is for speeding up the development process. Reusing code across similar projects will save the developer a substantial amount of time and effort.

 

WHY SHOULD WE NOT USE A PHP FRAMEWORK ?

  • You will learn a lot of stuff by writing your own pieces of code. I have been working like that and I have learned a lot of different things about PHP that I did not know before.
  • There are a lot of things in frameworks that you do not need and by making your own you can get only whatever you want and use in your project.
  •  Think about all of the settings that the other frameworks have to go through when loading and the database queries that involves. You save yourself all of that loading by writing code from scratch.
  • If you are going to make a small project, such as a simple portfolio website, then a framework would just be more work than necessary. You can choose then to write raw php code.

5 of the best php frameworks for web developers.

1) Symfony

Symfony is a full-stack framework, a library of cohesive classes written in PHP 5. It provides an architecture, components and tools for developers to build complex web applications faster. Choosing Symfony allows you to release your applications earlier, host and scale them without problem, and maintain them over time with no surprise.
Read more about this framework here.

2)  Zend Framework

Zend Framework 2 is an open source framework for developing web applications and services using PHP 5.3+. Zend Framework 2 uses 100% object-oriented code and uses most of the new features of PHP 5.3, namely namespaces, late static binding, lambda functions and closures. Zend Framework 2 evolved from Zend Framework 1, a successful PHP framework with over 15 million downloads.
Read more about this framework here.

3) Yii Framework

Yii is a high-performance PHP framework best for developing Web 2.0 applications.
Yii comes with rich features: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly.
Read more about this framework here.

4) CakePHP

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications.
Read more about this framework here.

5) CodeIgniter

CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications.
Read more about this framework here.

CONCLUSION

Bottom line, you should check the situation and make a good analysis before starting to use a php framework in your project. It is better to understand what advantages gives you a framework, check your project, see if you will save time not writing that stuff, and then decide if you use it or not.

WHAT IS PHPMYADMIN?

Most scripts you use to power your blog, shopping cart or community forum use a combination of PHP and MySQL. PHP is the Web programming language that forms the script, and MySQL is the format of the database that stores information your script needs to run. For instance, the popular blogging script WordPress store posts, comments, links, user data, options and more in your MySQL database. When you need to access that information–to change a password, for example–you use phpMyAdmin.
In short, it is one of the best Web-based, visual tool that lets you browse and edit your MySQL databases. Without it, you could edit your databases and view them in their entirety, in one long text file. If you were familiar with MySQL, you could manually edit anything in your database. However, this process would take longer than with the use of the Web tool. Furthermore, it’s much easier to undo unwanted changes, some of which might break your website, with phpMyAdmin.

ACCESSING PHPMYADMIN

You can log on to this utility from your host’s control panel. Hosts that use control pane software like cPanel or H-Sphere often include an icon to phpMyAdmin directly from the front page, so you needn’t click around to find it. You may have a list of users, and you can choose the one that you want to log in as if you have more than one. However, your host many not allow multiple users or databases, which will prompt phpMyAdmin to open immediately.

WHAT PHPMYADMIN CAN DO?

Once you have the tool open, you’ll see a lot of information. It can be overwhelming at first, but databases use a structure that makes them easy to navigate once you become familiar with them. The general layout shows the name of your database(s) on the left. Clicking the name will expand to show all your tables. If you use complex or multiple scripts, this list might be quite long. For example, a single database might have multiple blog installations what use different prefixes. If you use the prefixes “blog1_” and “blog2_”, it’s easier to see which tablets belong to which script.
You can simply browse to get a feel for your database. Some information in your tables might not be human-friendly, but other information will make sense to you. The various tabs provide different options. Perform operations with lines of code from the “SQL” tab. phpMyAdmin lets you manually import or export entire databases or tables in a variety of formats as well. You can locate data within your database using the “Search” tab or create, delete and otherwise modify tables from the “Operations” tab.

phpMyAdmin is crucial if you want to understand or modify your MySQL databases; although, it might appear differently to users based on the version or themes that your host uses.

Yeah…2010 is wonderful and memorable year in my life.

If i had to sum up 2010 in one word, I’d use the word “Milestones“. A lot of things have changed since they are ought to change in everyone’s life after the college.Which made me realize what is good and what is bad on my own.

In January i was a nervous wreck. Nervous about major project. Nervous about TGMC Project. Nervous about my Attendance (being a JNTU student). Nervous about Placements. Altogether Nervous about Life.

But Luckily, i got through everything quite fine. Time just made be patient enough to face all the things.

To start with my proudest accomplishments this year

  • My TGMC Project got Short Listed for the Second round and this made me confident enought to go for the face to face evaluation conducted in Hyderabad.Even though my project dint get selected for the further rounds i am very happy and satisfied with the awareness and knowledge i got by participating in TGMC with lots of hard work and many sleepless nights.


  • Next , my Academic Project is successfully completed and it impressed my faculty, Dean, Secretary and even friends.But one thing which made me low is the marks given to my friends (my Team members) for the project even it is perfect 😦


  • I got placed in one World’s Largest Company 🙂  on May 22nd.This is my biggest Achievement in my Life.


  • Have completed B.Tech in First Class with Distinction.


  • And finally said good bye to my College life with the Farewell Party given by my beloved juniors.


  • In june i went to Art of Living Ashram for the Part-I course which made me to say bye bye Nervousness which i had.I became a devotee of Ravi Shankar Guruji and a big fan of Guruji’s Satsang at Ashram in Bangalore.


  • Then i kept waiting for the call from the Company. At last i have joined CSC on August 20th. I was very happy with the posting given to me in Hyderabad (My place), the account which i got, friends, collegaues etc etc.


  • And at the end of December they have given me a good application with lot of hope on me. And from Next year 2011 my real work is goin to start.

So i would cordially invite 2011 by wishing everyone A lot of things have changed since i became professional plus somethings have still stayed the same.

I’m still a small littles girl to my parents even though i am doing a job now.

I’m still simple, traditional and respect elders.

I still dont know car driving atleast i learn this year 🙂

What will 2011 brings??

Hopefully peace of mind, less stress in job and happiness.

SixthSense‘ is a wearable gestural interface that augments the physical world around us with digital information and lets us use natural hand gestures to interact with that information.


This is amazing technology. Using components that cost around $350, Sixth Sense technology changes the way humans interact between the real world and the cyber world using hand gestures. Unlike the famous Minority Report display, images can be projected on any surface anywhere. Wearing a Sixth Sense device you can retrieve data about an object, use any flat surface to project a movie or play a video game, take text from a document and “pinch” it over into your computer, and many more. You can even take pictures by simply framing an area with thumb and index fingers. As the inventor, Pranav Mistry says, “The imagination is the only limit.”

Last date for SRS Submission -Extended to   20th  November ’09

SRS to be submitted at tgmc2009@in.ibm.com

Subject line for SRS submission should be in the following format:

Team name / State name / Project Scenario Name.

It’s would be better if you submit SRS in PDF format…To convert your SRS in to PDF format download doPDF software.Here is the link for downloading pdf-logo-main_Full