| Author |
execute script with cygwin/w*dows
|
|
| Dietrich Semsar 2006-09-25, 7:35 pm |
| Hi,
this is possible OT here, but I think in a w*dows group it might be
even more OT.
I have Linux, but use also very frequently cygwin when I using W-XP.
And I have many scripts doing much of the work for me. :-))
Now the question: is it possible to change XP that a bash script could
use drag and drop?
How could that be done?
Now I must always start a bash and the run the script with the needed
parameters.
When the parameter are just filenames I would appreciate drag and drop.
And hints appreciated
Greetings
D
| |
| Ralph Moritz 2006-09-26, 1:22 pm |
| "Dietrich Semsar" <Dietrich.Semsar@gmx.de> writes:
> Now the question: is it possible to change XP that a bash script could
> use drag and drop?
Yes.
> How could that be done?
By simply dragging the file into the Cygwin (bash) window.
When you drop the file, its absolute path gets copied onto
the bash prompt.
--
Ralph Moritz
Quantum Solutions Ph: +27 315 629 557
GPG Public Key: http://ralphm.info/me@ralphm.info.gpg
| |
| jmcgill 2006-09-26, 1:22 pm |
| Ralph Moritz wrote:
> By simply dragging the file into the Cygwin (bash) window.
> When you drop the file, its absolute path gets copied onto
> the bash prompt.
This works between the File Browser and terminal windows in Ubuntu Linux
as well (and I assume in all Gnome-ish environments).
It also works on MacOSX; when I saw that for the first time, I was
jealous, until I realized it worked in Linux too!
| |
| Dietrich Semsar 2006-09-28, 7:33 am |
|
Ralph Moritz schrieb:
> "Dietrich Semsar" <Dietrich.Semsar@gmx.de> writes:
>
>
> Yes.
>
>
> By simply dragging the file into the Cygwin (bash) window.
> When you drop the file, its absolute path gets copied onto
> the bash prompt.
I understand that only the absolute path of the object is copied to the
bash prompt. Currently I'm running slax and there I do get a menu:
paste | cd | cp | ln | mv
But that's not what I want: I want to execute a *certain bash script* -
not just bash - with that file like dropping the file or pathname onto
the icon of an executable. Or like if the extensions if that file is
"connected" to the script.
Greetings
D
|
|
|
|