how can D program find it's own executable name on windows ?

monarch_dodra monarchdodra at gmail.com
Tue Jan 29 07:46:39 PST 2013


On Tuesday, 29 January 2013 at 15:33:29 UTC, rsk82 wrote:
> Are there any build in function or must I resort to winapi ?

args[0]?

//----
import std.stdio;
void main(string[] args)
{
     stdout.writeln(args[0]);
}
//----


More information about the Digitalmars-d-learn mailing list