writing .bat file?

Posted on 2011-10-31
Last Modified: 2012-06-27

What can you use to write a .bat file?
Is it WSH or PowerShell or vscript?
Or fixed?
Question by:dkim18
    LVL 47

    Assisted Solution

    Are you atliking about writing .bat file with Java program?
    Then you werite it just like any other twext file
    LVL 7

    Accepted Solution

    .bat file stands for DOS batch files, which means it is just the set of DOS commands arranged in sequence to produce some desired output. This DOS scripting is also supported in cmd.exe mode provided by Windows XP,2K,2K7 etc.
    So, e.g. if you want to copy certain files at startup and delete the older files, then you may write delete and copy or xcopy command in a text file and save it as .bat file. Which when executed will run in sequence to produce the expected output. So, you can start writing a batch file using simple notepad, and you need only command shell like or cmd.exe to run it on windows.

    LVL 37

    Assisted Solution

    by:Gerwin Jansen
    Use notepad or just any other plain text editor!
    LVL 47

    Expert Comment

    Does this have anything to do with Java Programming Language?

    Author Closing Comment

    I guess I posted this in the wrong place.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
    The viewer will learn how to implement Singleton Design Pattern in Java.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now