How to execute Windows CLI commands in Ruby?

前端 未结 2 427
被撕碎了的回忆
被撕碎了的回忆 2020-12-17 00:45

I have a file located in the directory \"C:\\Documents and Settings\\test.exe\" but when I write the command `C:\\Documents and Settings\\test.exe in single qou

2条回答
  •  天涯浪人
    2020-12-17 01:43

    `"C:\Documents and Settings\test.exe"`
    

    or

    `exec "C:\Documents and Settings\test.exe"`
    

    or whatever in qoutes

提交回复
热议问题