An open API service indexing awesome lists of open source software.

https://github.com/sevdanurgenc/callwindowscommandline

How to execute windows command line from Java.
https://github.com/sevdanurgenc/callwindowscommandline

batchfile command-line-tool java

Last synced: 9 months ago
JSON representation

How to execute windows command line from Java.

Awesome Lists containing this project

README

          

# callWindowsCommandLine
How to execute windows command line from Java.

## In this repo, it is implemented to run a file with a specified location on the command line via java code. The file helloNano.bat, which can be an example, is attached. At the same time, we can say that the command Runtime.getRuntime().exec() works best for this application.

![image](https://user-images.githubusercontent.com/5441882/130453384-e209e125-8deb-4d72-b510-034d3872c97a.png)

## As seen below, Optionally if you want you can call the command line via a button as a desktop application.

![image](https://user-images.githubusercontent.com/5441882/130457182-39fe5404-ad3b-42ed-8a9e-4b2404d3cf7a.png)