Try this:
@echo off
set /p id="Enter ID: "
You can then use %id%
as a parameter to another batch file like jstack %id%
.
For example:
set /P id=Enter id:
jstack %id% > jstack.txt
More Related Contents:
- Variables are not behaving as expected
- Single line with multiple commands using Windows batch file
- Where is “START” searching for executables?
- Which comment style should I use in batch files?
- How to check if directory exists in %PATH%?
- What does %~d0 mean in a Windows batch file?
- How to run a PowerShell script from a batch file
- How to code a BAT file to always run as admin mode?
- How to verify if a file exists in a batch file?
- Windows command to convert Unix line endings?
- Stop and Start a service via batch or cmd file?
- Batch file variables initialized in a for loop
- Windows batch: formatted date into variable
- IF… OR IF… in a windows batch file
- What does symbol ^ mean in Batch script?
- How to run a PowerShell script within a Windows batch file
- Resolve absolute path from relative path and/or file name
- How to count no of lines in text file and store the value into a variable using batch script?
- How to test if a path is a file or directory in Windows batch file?
- Split string with string as delimiter
- How to change Screen buffer size in Windows Command Prompt from batch script
- Delete all files and folders in a directory
- Several ways to call a windows batch file from another one or from prompt. Which one in which case?
- How to append a date in batch files
- How can I source variables from a .bat file into a PowerShell script?
- Windows Batch file to echo a specific line number
- Batch create folders based on part of file name and move files into that folder
- How to expand a CMD shell variable twice (recursively)
- Split %date% in a batch file regardless of Regional Settings
- Global NPM package installed but command not found