stop autoclosing

Posted on 2008-11-08
Medium Priority
Last Modified: 2013-12-04
@echo off
CD \Pedro - Arquivos\study\normal\Java
set /p Word=Type a software to compile:
echo on
javac %Word%

I can not see the output of my own software. How can I stop my batch file from autoclosin?
Question by:locke1994
1 Comment
LVL 21

Accepted Solution

AmazingTech earned 1000 total points
ID: 22915007
Do you double click this from windows explorer?

Start it from a command prompt or have your shortcut call CMD.EXE /k File.bat

Or add a pause at the end of your batch file.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Screencast - Getting to Know the Pipeline

569 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