Accessing the executed file name in C is as simple as argv[0]. However this doesn't work in DOS 2.x. I know I'm not the only one with a Tandy 1000 (DOS 2.11) and/or PCjr on this forum, so I thought I'd ask on here to see how you go about determining this.
For now I've worked around the issue by copying the __FILE__ macro contents and changing ".C" to ".EXE". Obviously this only works as long as the user doesn't rename the file!
P.S. -- What interrupt is called to get the executable filename? I didn't see that information in the PSP.
For now I've worked around the issue by copying the __FILE__ macro contents and changing ".C" to ".EXE". Obviously this only works as long as the user doesn't rename the file!
P.S. -- What interrupt is called to get the executable filename? I didn't see that information in the PSP.