Note that there are some explanatory texts on larger screens.

plurals
  1. POwhat is the simplest way to pop up an instruction from ruby code in windows?
    primarykey
    data
    text
    <p>The platform is windows xp x86.</p> <p>I want to write a function, like <code>pop_up_instruction()</code>, when call it, there should be a popup dialog or notepad or command-line or whatever else to print a block of instruction on it.</p> <p>the instruction contains "\r\n", like such:</p> <pre><code>Explorer [/n] [/e] [(,)/root,&lt;object&gt;] [/select,&lt;object&gt;] /n Opens a new single-pane window for the default selection. This is usually the root of the drive Windows is installed on. If the window is already open, a duplicate opens. /e Opens Windows Explorer in its default view. /root,&lt;object&gt; Opens a window view of the specified object. /select,&lt;object&gt; Opens a window view with the specified folder, file or application selected. </code></pre> <p>I wrote a function to convert the above string into a vb-string, and print it to a vbs file and call this vbs file using system(the_vbs_file), the_vbs_file content:</p> <pre><code> MsgBox "Explorer [/n] [/e] [(,)/root,&lt;object&gt;] [/select,&lt;object&gt;]" &amp; vbCrLf &amp; _ "" &amp; vbCrLf &amp; _ "/n Opens a new single-pane window for the default" &amp; vbCrLf &amp; _ " selection. This is usually the root of the drive Windows" &amp; vbCrLf &amp; _ " is installed on. If the window is already open, a" &amp; vbCrLf &amp; _ " duplicate opens." &amp; vbCrLf &amp; _ "/e Opens Windows Explorer in its default view." &amp; vbCrLf &amp; _ "/root,&lt;object&gt; Opens a window view of the specified object." &amp; vbCrLf &amp; _ "/select,&lt;object&gt; Opens a window view with the specified folder, file or" &amp; vbCrLf &amp; _ " application selected." &amp; vbCrLf &amp; _ "" </code></pre> <p>Do we have other better way?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload