require "Win32API"def system(cmd) sys = Win32API.new("crtdll", "system", ['P'], 'L') sys.Call(cmd)endsystem("dir") # cmd /c not needed!