Home > Enterprise >  Why is my .bat file exiting without error after line 14 (pause befor if statement)?
Why is my .bat file exiting without error after line 14 (pause befor if statement)?

Time:05-13

A bit embarrased that my first question is about a simple batch file, but my knowledge is quite limited in this topic.

I am writing a simple batch script to copy some data from a to b. For this reason i want to create destination folders according to the current month and check if the folder already exists.

I am not able to identify why my code exits at line 14 without throwing anything after pressing a key. I also tried verifying the code with a batch code verifying tool (BatCodeCheck "quite outdated"). However it throws no errors or warnings regarding my problem.

The code in question:

@echo off
echo Getting current month...
set month=           
  • Related