How to use the std.process?
FrankLike via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue May 13 03:48:04 PDT 2014
> does it work when you run "iexplore localhost:8000" in command
> line? is path to iexplore in your windows path?
Ok,I get the answer by myself.
module main;
import std.process,std.stdio;
void main()
{
//spawnProcess("C:\\Program Files (x86)\\Internet
Explorer\\iexplore");
spawnProcess(["C:\\Program Files (x86)\\Internet
Explorer\\iexplore", "http://localhost:8080" ]);
}
:-D
Frank
More information about the Digitalmars-d-learn
mailing list