Trendoday

Why a program doesn't work when run from a batch file, but works when clicked

0 comments

  • Points118
  • Comments68
–Rank now
#9Peak rank · Oct 30
2Days on list
–List score · 7d
Oct 30, 2026First seen

On Hacker News

Points
118
Comments
68
Submitted by
ibobev
Posted
Oct 26, 2026
Site
devblogs.microsoft.com

Story details from Hacker News ↗ · linked article on devblogs.microsoft.com.

Trending history

Why a program doesn't work when run from a batch file, but works when clicked was first seen by Trendoday on Oct 30, 2026. Since then it has appeared in 48 checks on 2 different days. It reached #9 on Hacker News · Front page on Oct 30, 2026 UTC. It was last seen on Hacker News · Front page on Oct 31, 01:22 UTC.

Rank history

Best recorded rank on Hacker News · Front page per UTC day.

#1#5#10#14 Oct 30Oct 31 Oct 30, 2026 UTC · #9Oct 31, 2026 UTC · #14

Last 14 days

Best rank per day (UTC).

Nov 23today

From the discussion

A few top-level comments from Hacker News, shortened. Read the full thread on Hacker News.

With drive letters, a neat functionality in DOS/Windows command prompts (don't ask me about Powershell) is that each letter can have its own "current directory". So if you have ffmpeg.exe in C:\Program Files\FFMpeg\bin, and you have some source files in D:\SourceVideos, and you want to process them in ffmpeg and…

How much are these customers paying for support to have Raymond Chen on first level support to debug their batch files?

> Explorer sets the current directory of the program to the directory containing the thing that you double-clicked I found the linked article to informative and confirming my suspicion: "The thing that you clicked" doesn't have to be the executable - it could also be a document with the executable registered as…

Questions

Is Why a program doesn't work when run from a batch file, but works when clicked trending on Hacker News · Front page right now?

Not at the moment. Its last recorded appearance was on Oct 31, 01:22 UTC.

What is the highest rank Why a program doesn't work when run from a batch file, but works when clicked reached on Hacker News · Front page?

#9 on Oct 30, 2026 UTC.

How long has Why a program doesn't work when run from a batch file, but works when clicked been trending?

It was first seen on Oct 30, 2026 and has been on the list on 2 days (48 checks) since.

How much discussion did it get on Hacker News?

118 points and 68 comments; submitted by ibobev on Oct 26, 2026.