Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.22 KB | None | 0 0
  1. import std.stdio;
  2. import std.file;
  3. import std.process;
  4.  
  5. void main(string[] argv)
  6. {
  7.    
  8.     environment["ComSpec"] = `C:/Program Files (x86)/Git/bin/sh.exe`;
  9.    
  10.     auto pid = spawnShell("dir");
  11.     wait(pid);
  12.    
  13.     writeln("ok");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement