Tag Archives | Batch file

Parsing Dates in Batch Files & Regional Settings / Locale

Determining day, month and year on the command line is surprisingly difficult if the solution is to work across locales, i.e. on international systems with different regional settings. Although we can use the variables %DATE% and %TIME% their contents is specific to the locale. If set to German, the date is displayed in the format […]

Continue Reading · 2

How to Run Console Programs Without a Console Window

From time to time the question gets asked how a batch file or console program can be executed silently or hidden, i.e. without a console window popping up. If you do not know what I am talking about: press Win+R, type “help” and press ENTER. A black console window will open, execute the HELP command […]

Continue Reading · 1