Advertisement
Guest User

Untitled

a guest
Oct 18th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.29 KB | None | 0 0
  1. import std.stdio;
  2. import std.string;
  3. import std.file;
  4. import core.stdc.stdlib;
  5.  
  6. int main()
  7. {
  8.     auto dFiles = dirEntries("","*.{d,di}",SpanMode.depth);
  9.     string cmd = "dmd -m64";
  10.     foreach(d; dFiles)
  11.         cmd ~= " " ~ d.name;
  12.  
  13.     cmd ~= " D.exe";
  14.     system(cmd.toStringz());
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement