I'm trying to put together a set of batch files that perform similar
tasks. Each one creates a log file named after itself. If I can
retrieve the name of the batch file then I can avoid hard coding the
file name. I'd also like to use the same error subroutine that
displays a usage message containing the full batch file name.
%~nx0
> And is there then a way to get the
> base file name without the extension?
%~n0
See the last two pages of for /?
> I'm trying to put together a set of batch files that perform similar
> tasks. Each one creates a log file named after itself. If I can
> retrieve the name of the batch file then I can avoid hard coding the
> file name. I'd also like to use the same error subroutine that
> displays a usage message containing the full batch file name.
--
Regards,
Mic
Thanks!