Mirror of
forum.nim-lang.org
index
633 :: execCmd
[2014-11-19T17:38:27+01:00]
View Orginal
donydh
(orginal)
[2014-11-19T17:38:27+01:00]
view original
import osproc
let exitCode = execCmd (
"
dir
"
)
Error: unhandled exception: The system cannot find the file specified.
[EOS]
donydh
(orginal)
[2014-11-19T18:09:50+01:00]
view original
sorry,it's my fault,set wrong cfg file!!
leledumbo
(orginal)
[2014-11-19T18:10:27+01:00]
view original
dir is not a standalone executable AFAIK, it's internal command inside cmd.exe. You can run
"
cmd /c dir
"
instead.