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 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.
Best recorded rank on Hacker News · Front page per UTC day.
Best rank per day (UTC).
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. Its last recorded appearance was on Oct 31, 01:22 UTC.
#9 on Oct 30, 2026 UTC.
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.