Windows Command line: Is there any way to check syntax of bat file without actually running it?

Windows Command line: Is there any way to check syntax of bat file without actually running it?

0

2 Answers

Unfortunately a good and extensive checker doesn't really exist.

The only one I was able to locate isBatCodeCheck, which dates from 2014 and which checks for only a limited number of errors.

Maybe you could try to run the .bat in a sandbox enironment. I haven't tried it myself, but start the cmd.exe in a sandbox programm and then try to execute the bat file.

This might work if all necessary files are present.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like