How do you make a batch file?

danball1976danball1976 Wichita Falls, TX
edited August 2004 in Science & Tech
How do you make a batch file?

I want to have the batch file to initiate the install of the vorbisacm.inf to install the OGG Vorbis ACM audio codec instead of always right clicking it.

Then I want to make an SFX archive so that clicking on the SFX archive will activate the batch file.

Can anyone tell me how?

Comments

  • PressXPressX Working! New
    edited August 2004
    Here is a very simple batch file. This is edited in notepad and then saved as SMTEST.bat - It just displays the time but gives you the basics of a batch file...
    @echo off

    :THIS IS THE TITLE
    Title What is the time?

    :THIS IS A BIT YOU CAN PRINT ON SCREEN FOR THE USERS INFORMATION
    echo.
    echo.
    echo.
    echo Short Media PressX
    echo.
    echo Filename : SMTEST.bat
    echo Date : 22 August 2004
    echo Version : 0.0.1
    echo Author : PressX Marcus
    echo.
    echo.
    echo.
    echo.


    :THIS IS THE BIT WHERE YOU PUT THE COMMANDS

    time /t
    echo.

    :IF YOU WANT TO ADD A COMPLETION NOTE THIS IS A GOOD PLACE TO PUT IT

    echo The Time :-)
    echo.
    echo.

    :IF YOU DO NOT WANT A WINDOW TO CLOSE ADD A PAUSE
    pause

    :THIS CLEARS THE SCREEN AND CLOSES THE WINDOW
    cls
    @exit
    Some useful links for batch files and commands:

    http://www.techtutorials.info/dbatch.html

    http://www.ss64.com/nt/

    http://www.robvanderwoude.com/index.html
Sign In or Register to comment.