After playing around a bit more, I found the solution myself:
cmd "/C clean.bat"
does the trick. But I got no clue, why…
More Related Contents:
- Variables are not behaving as expected
- Single line with multiple commands using Windows batch file
- Batch file to delete files older than N days
- How to have multiple colors in a Windows batch file?
- How do I measure execution time of a command on the Windows command line?
- Windows Batch Variables Won’t Set
- ‘Pretty print’ windows %PATH% variable – how to split on ‘;’ in CMD shell
- Where is “START” searching for executables?
- How to verify if a file exists in a batch file?
- Windows command to convert Unix line endings?
- windows batch SET inside IF not working
- Stop and Start a service via batch or cmd file?
- Why git can’t remember my passphrase under Windows
- Batch files: List all files in a directory with relative paths
- How to run a PowerShell script within a Windows batch file
- Windows batch script to parse CSV file and output a text file
- Using parameters in batch files at Windows command line
- Convert a small PS script into a long line in a .BATch file
- What is the easiest way to reset ERRORLEVEL to zero?
- 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
- What would be the Windows batch equivalent for HTML’s input type=”password”?
- How to read input from console in a batch file?
- How can I source variables from a .bat file into a PowerShell script?
- I need to match or replace an asterisk * in a batch environmental variable using only native Windows commands. Is this possible?
- How to expand a CMD shell variable twice (recursively)
- Split %date% in a batch file regardless of Regional Settings