---
title: "Discussion on \"Java Options with windows-special-character in Windows Batch Scripts (.cmd or .bat)\" | Hashnode"
description: "Discussion on \"Java Options with windows-special-character in Windows Batch Scripts (.cmd or .bat)\". How does a batch script work?\nWhen you run a batch script, the Windows Command Prompt reads and executes the commands line by line. The Command Prompt opens the .bat or .cmd file and reads it line by line.\nEach line is treated as a command or instruc..."
url: "https://hashnode.com/posts/java-options-with-windows-special-character-in-windows-batch-scripts-cmd-or-bat/679361ea492038676c03abaf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Java Options with windows-special-character in Windows Batch Scripts (.cmd or .bat)](https://padiyar.hashnode.dev/java-options-with-windows-special-character-in-windows-batch-scripts-cmd-or-bat?utm_source=hashnode&utm_medium=feed)

How does a batch script work? When you run a batch script, the Windows Command Prompt reads and executes the commands line by line. The Command Prompt opens the .bat or .cmd file and reads it line by line. Each line is treated as a command or instruc...

Jan 24, 2025 · 4 min read · padiyar.hashnode.dev  
Read the article

-   [#package-handler](https://hashnode.com/tag/package-handler)
-   [#java-options](https://hashnode.com/tag/java-options)
-   [#handlers](https://hashnode.com/tag/handlers)
-   [#batch](https://hashnode.com/tag/batch)
-   [#scripting](https://hashnode.com/tag/scripting)

## Written by

[Ashwin Padiyar](https://hashnode.com/@ashwinpadiyar)

@ashwinpadiyar · Bengaluru, India

  
[View profile](https://hashnode.com/@ashwinpadiyar)

Simple things appeal, a technologist

I have over 14 years of experience in the software industry. When I am coding or designing, I like to keep track of anything I learn. This blog is a sort of technical diary where I note down technical things. I am glad if anyone finds them helpful.

## Responses 1

Markdown supported · ⌘↵ to post

[Satish](https://hashnode.com/@techwithsatish)

[Jan 24, 2025](https://hashnode.com/posts/java-options-with-windows-special-character-in-windows-batch-scripts-cmd-or-bat/679361ea492038676c03abaf/comment/679367f8f3495a3eb02e2997)

What is the difference between shell scripting AND BASH SCRIPTING 🤔

[Ashwin Padiyar](https://hashnode.com/@ashwinpadiyar)

[Jan 24, 2025](https://hashnode.com/posts/java-options-with-windows-special-character-in-windows-batch-scripts-cmd-or-bat/679361ea492038676c03abaf/comment/679367f8f3495a3eb02e2997#reply-6793783b6f808bac78b1274d)

Shell scripting is a broad term that inlcudes scripting for various Unix/Linux shells, including Bash scripting.

You can run a Bash script (written specifically for the Bash shell) on a Linux shell, but a generic shell script may not always run on Bash if it uses features specific to another shell. Bash is a subset of shell scripting.

[Satish](https://hashnode.com/@techwithsatish)

[Jan 26, 2025](https://hashnode.com/posts/java-options-with-windows-special-character-in-windows-batch-scripts-cmd-or-bat/679361ea492038676c03abaf/comment/679367f8f3495a3eb02e2997#reply-6796138a9bd4a2fa439da6da)

thanks bhai [Ashwin Padiyar](https://hashnode.com/@ashwinpadiyar)
