I want to open the command prompt through batch file and enter the text in the command prompt. I used the following method but it does not work.
@ECHO OFF
cls
CALL "C:\Windows\system32\cmd.exe"
cd C:\Programms\ramkumar\Java\HelloWorld
javac HelloWorld.java
java HelloWorld
But it still remains in C:\Programms\ramkumar\Java\HelloWorld and not executing the java program.
java -versionshowing anything on cmd?