Why a program doesn't work when run from a batch file, but works when clicked
0 comments
- Points118
- Comments68
0 comments
Story details from Hacker News ↗ · linked article on devblogs.microsoft.com.
Why a program doesn't work when run from a batch file, but works when clicked was first seen on Hacker News · Front page on Oct 30, 2026. Since then it has appeared in 48 checks on 2 different days. Its best position was #9 of 30, reached on Oct 30, 18:22 UTC. It dropped off the list after Oct 31, 01:22 UTC.
Position on Hacker News · Front page at every check (lower is better).
Best rank per day (UTC).
Platform metric as reported by Hacker News.
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…
Archived daily, weekly and monthly lists that include this entry.
Not at the moment. It was last on the list on Oct 31, 01:22 UTC, after 2 days of trending.
#9 on Hacker News · Front page, on Oct 30, 18:22 UTC. Trendoday checks this list every 15 minutes.
It was first seen on Oct 30, 2026 and has been on the list on 2 days (48 checks) since.
118 points and 68 comments; submitted by ibobev on Oct 26, 2026.