Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 10-01-2009
Join Date: May 2008
Posts: 2,008
How to create a Batch file

Hi friends ,
I want to create a batch file can anyone tell me the steps which I need to follow for creating a batch file.
Reply With Quote
Old 10-01-2009
Join Date: Apr 2008
Posts: 1,948
Re: How to create a Batch file

You need to follow few steps.
  1. Open a notepad file.
  2. Type

    start/d "C:\Program Files\Mozilla Firefox" firefox.exe
    start /d "C:\Program Files\Microsoft Office\Office12" EXCEL.EXE

    • There will be different path for Windows Xp and Vista.Window Xp uses MS Office as extension for opening the file (Office 2007 is used in the example).
    • Where start tells Windows to open a separate window to run the specified program.
    • The /d switch tells start command the path of the program. For starting Excel and Firefox, notice that the paths are in quotes, which is needed when there is a space in the file path.
  3. Now it's great that all two programs are open.
    • But if you need to open an website in Mozilla firefox For example www.yahoo.com than the commands go as this

    start/d "C:\Program Files\Mozilla Firefox" firefox.exe www.yahoo.com

  4. This way you can open any number of files/application.

  5. Most important don?t save the file with extension as .txt save it as .batthan only the batch file will be created.
Reply With Quote

  TechArena Community > Software > Software Development
Tags: ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "How to create a Batch file"
Thread Thread Starter Forum Replies Last Post
how can i create a Batch file to kill some processes by name Hansel Ortiz -[BrEcHaWarr] Windows Server Help 7 07-06-2012 11:24 AM
I want to create a TCP/IP Batch file aladdin Software Development 1 14-02-2012 11:59 PM
Create a simple IP Tool Batch File. Bracken Software Development 12 11-12-2011 05:33 PM
Help me create this batch file. bomblast Windows Software 1 31-10-2011 10:47 AM
How to create batch for RAR file extension Jayden Windows Software 1 13-04-2009 11:58 PM

All times are GMT +5.5. The time now is 12:12 AM.