Results 1 to 2 of 2

Thread: How to create a Batch file

  1. #1
    Join Date
    May 2008
    Posts
    2,012

    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.

  2. #2
    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


      Note
      • 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.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,653,775.24323 seconds with 17 queries