In the usual Windows command prompt (i.e. cmd.exe), just using call mybat.bat
did what I wanted. I got all the environment variables it had set.
More Related Contents:
- How can I send the stdout of one process to multiple processes using (preferably unnamed) pipes in Unix (or Windows)?
- Windows command to convert Unix line endings?
- At which point does `for` or `for /R` enumerate the directory (tree)?
- Batch file: Find if substring is in string (not in a file)
- Iterate all files in a directory using a ‘for’ loop
- Batch character escaping
- How to wait all batch files to finish before exiting?
- How to do something to each file in a directory with a batch script
- Find out if file is older than 4 hours in Batch file
- How to run .sh on Windows Command Prompt?
- How do I echo and send console output to a file in a bat script?
- Set a persistent environment variable from cmd.exe
- IF… OR IF… in a windows batch file
- Windows batch script to read an .ini file
- Copy text from a Windows CMD window to clipboard
- Is there a way to run Bash scripts on Windows? [closed]
- How can I debug a .BAT script?
- Counting in a FOR loop using Windows Batch script
- cmd is somehow writing Chinese text as output
- Windows PATH to posix path conversion in bash
- Special Characters in Batch File
- How to pass environment variables as parameters by reference to another batch file?
- Windows 7 – ‘make’ is not recognized as an internal or external command, operable program or batch file
- Unicode (utf-8) with git-bash
- Windows shell command to get the full path to the current directory?
- Ping with timestamp on Windows CLI
- How can I source variables from a .bat file into a PowerShell script?
- How do I remove the process currently using a port on localhost in Windows? [closed]
- How to expand a CMD shell variable twice (recursively)
- Split %date% in a batch file regardless of Regional Settings