Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: creating batch file  (Read 5531 times)

0 Members and 1 Guest are viewing this topic.

mam

  • Guest
creating batch file
« on: November 24, 2004, 08:09:49 PM »
Hi,

Does anyone guide me to write a batch file to run all files in a folder at once

Neil



    Expert
  • Fear me Track. Noone can escape my wrath.
  • Thanked: 3
    Re: creating batch file
    « Reply #1 on: November 26, 2004, 04:32:17 PM »
    Not sure if it's possible. Why do you want to do that anyway?

    Corrosive

    • Guest
    Re: creating batch file
    « Reply #2 on: November 27, 2004, 09:31:41 AM »
    Yes it is possible, and there are various reasons for doing it. I use it to start up Apache Server, MySQL server and HTML editor at the "same" time (technically, they are being run one after the other, but due to the speed of modern processors it appears they start simultaniously).

    Anyway, the command you are looking for is the "start" command, ie:

    start [path to program]

    Simple, eh?

    cs

    • Guest
    Re: creating batch file
    « Reply #3 on: December 22, 2004, 08:46:22 AM »
    Assuming the folder with the files to be executed is t, then a script like this should work:

    Code: [Select]
    @echo off
    echo @echo off > temp.bat
    for /f %%i in ('dir /b t') do (
       echo call t\%%i >> temp.bat
    )
    call temp.bat
    del temp.bat

    I used the command call to run the files (assuming they are batch files). Maybe you have to use start ?/b?.

    Cheers,
    [glb]cs[/glb]

    Phil Cerrone

    • Guest
    Re: creating batch file
    « Reply #4 on: January 24, 2005, 06:23:16 PM »
    New problem.
    I need help with a batch file problem I'm having.  How do I make today's date, like Jan. 24, '04, the name of the folder I wish to create in my documents such that each time I run the file it will produce the current date for a new folder each/every day.  Replies appreciated.
    Thanx Phil.

    mam

    • Guest
    Re: creating batch file
    « Reply #5 on: January 24, 2005, 06:45:37 PM »
     I want to open many files of same application,
    I want to write batch file for opening many sgml files at once,

    I doesnot want to open different applications using batch file.

    Thanks