<p>Well, really setting e.g. in Windows the context action as  %s<br>
and then calling it on:  cmd /c DEL /Q /S /F c:\valuable*.*<br>
we would clear the valuable directory off. It would be entirely our mental problem, not Geany's.</p>
<p>Sometimes ago I'd tried the use of GEANY_CURRENT_FILE and other env. variables, without success. Now trying tmp.bat file (as context action tmp.bat %s):<br>
echo ---------<br>
echo %PATH%<br>
echo ---------<br>
echo %1<br>
echo ---------<br>
echo %GEANY_CURRENT_FILE%<br>
echo ---------<br>
pause<br>
I get:<br>
PATH variable - OK<br>
Geany selection - OK<br>
GEANY_CURRENT_FILE variable -   NOT OK<br>
i.e. no success again.</p>
<p>Moreover, F5 (Run) gives the same (%s excluding).<br>
Geany v.1.29. Windows. (I would test it on other versions and platforms)</p>
<p>Of course noboby need to read my 'novels'.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1836#issuecomment-383356571">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ3CL8HRlGRtJarRINbs-c1ftfIZhks5trBStgaJpZM4Td5qs">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ4lnZXuq0IuzqzeYWQ4JxVvBadfaks5trBStgaJpZM4Td5qs.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1836#issuecomment-383356571"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@aplsimple in #1836: Well, really setting e.g. in Windows the context action as  %s \r\nand then calling it on:  cmd /c DEL /Q /S /F c:\\valuable\\*.*\r\nwe would clear the valuable directory off. It would be entirely our mental problem, not Geany's.\r\n\r\nSometimes ago I'd tried the use of GEANY_CURRENT_FILE and other env. variables, without success. Now trying tmp.bat file (as context action tmp.bat %s):\r\n   echo ---------\r\n   echo %PATH%\r\n   echo ---------\r\n    echo %1\r\n   echo ---------\r\n   echo %GEANY_CURRENT_FILE%\r\n    echo ---------\r\n    pause\r\nI get:\r\n  PATH variable - OK\r\n  Geany selection - OK\r\n  GEANY_CURRENT_FILE variable -   NOT OK\r\ni.e. no success again.\r\n\r\nMoreover, F5 (Run) gives the same (%s excluding).\r\nGeany v.1.29. Windows. (I would test it on other versions and platforms)\r\n\r\nOf course noboby need to read my 'novels'."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1836#issuecomment-383356571"}}}</script>