in reply to Re^2: Perl Directive
in thread Perl Directive
.bat files are actually text files which are input to cmd.exe
Yeah, I know what they *are*. (I cut my teeth on PC-DOS 3.3, so I've written a couple of batch files. I once joked about writing interactive fiction as a series of DOS3 batch files for an abuse-of-language contest. Of course, Zarf's threat to do one in PostScript was a bit more impressive...) But the registry assocation that Explorer uses is set up (at least in Win9x/Me, by default) exactly the same way as for EXE files:
That is, they're directly executable. And there's obviously no magic number in them— they don't even have to have the trailing ^Z (EOF) any more in Windows. So I was wondering how the API can determine that they're batch files, if not by looking at the extension _again_ after Explorer has handed off to CreateProcess.
|
|---|