Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>My own solution. Tested on windows XP (but I think it should run in any windows environment with a little effort).</p> <p>You need to use the <a href="http://technet.microsoft.com/en-us/sysinternals/bb897553" rel="nofollow">psexec</a> and <a href="http://technet.microsoft.com/en-us/library/cc788125%28WS.10%29.aspx" rel="nofollow">quser</a> command.</p> <p>First, put <em>psexec</em> and <em>quser</em> in a directory included in the cygwin's <em>PATH</em> environment variable. Just copy these files into the bin directory under cygwin.</p> <p>You can find the <em>quser.exe</em> in your <em>%system32%\dllcache</em> dir. But for any reason I can't access to it (or access to the mentioned directory) through cygwin commands (i.e. ls, cp, etc), so I made a copy using the microsoft's copy command to the cygwin\bin folder.</p> <p><strong>Notes</strong>: I think it's helpful to have the suite psutils all in the bin folder of cygwin. The first time you run either of these utilities will have to accept a license agreement from Microsoft warning, so run psexec from Windows explorer the first time.</p> <p>Then create these alias in your .bash_profile file:</p> <pre><code>alias winrun='psexec \\\\YOU_USERNAME_HERE -d -i `quser | grep YOU_USERNAME_HERE | grep console | awk "{print \\\$3}"`' alias explorethis='winrun explorer $(cygpath -w `pwd`)' </code></pre> <p>Remember that you will need to translate the current directory using cygpath if you need to pass it as argument of a command ("explorethis" is an example of that).</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.
    1. VO
      singulars
      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