Re: how to embed shell script within a .BAT file

2014-11-11 Thread Andrey Repin
Greetings, Nellis, Kenneth! >> From: Achim Gratz >> >> Nellis, Kenneth writes: >> > Jeremy's solution is closest to what I was looking for; however I need >> > it to work from a networked, non-drive-mapped folder. >> > (CMD.EXE doesn't like UNC paths.) I hadn't realized that I could pipe >> > a s

RE: how to embed shell script within a .BAT file

2014-11-11 Thread Nellis, Kenneth
> From: Achim Gratz > > Nellis, Kenneth writes: > > Jeremy's solution is closest to what I was looking for; however I need > > it to work from a networked, non-drive-mapped folder. > > (CMD.EXE doesn't like UNC paths.) I hadn't realized that I could pipe > > a script into bash. > > The solution t

Re: how to embed shell script within a .BAT file

2014-11-10 Thread Andrey Repin
Greetings, Andrew DeFaria! >>> (CMD.EXE doesn't like UNC paths.) I hadn't realized that I could >>> pipe a script into bash. >> >> reg ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /f /v >> "DisableUNCCheck" /t REG_DWORD /d 1 >> >> And speaking of "doesn't like", it only don't like

Re: how to embed shell script within a .BAT file

2014-11-10 Thread Andrew DeFaria
On 11/10/2014 10:57 AM, Andrey Repin wrote: Greetings, Nellis, Kenneth! (CMD.EXE doesn't like UNC paths.) I hadn't realized that I could pipe a script into bash. reg ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /f /v "DisableUNCCheck" /t REG_DWORD /d 1 And speaking of "doesn

Re: how to embed shell script within a .BAT file

2014-11-10 Thread Andrey Repin
Greetings, Nellis, Kenneth! > (CMD.EXE doesn't like UNC paths.) I hadn't realized that I could > pipe a script into bash. reg ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /f /v "DisableUNCCheck" /t REG_DWORD /d 1 And speaking of "doesn't like", it only don't like it's own CWD to

Re: how to embed shell script within a .BAT file

2014-11-10 Thread Achim Gratz
Nellis, Kenneth writes: > Jeremy's solution is closest to what I was looking for; however > I need it to work from a networked, non-drive-mapped folder. > (CMD.EXE doesn't like UNC paths.) I hadn't realized that I could > pipe a script into bash. The solution to the UNC path problem is to put som

RE: how to embed shell script within a .BAT file

2014-11-10 Thread Nellis, Kenneth
> From: Jeremy Bopp > > On 11/07/2014 03:26 PM, Nellis, Kenneth wrote: > > I'm tired of creating pairs of script files: a clickable .BAT file to > > invoke my shell script and then my shell script to do the actual work. > > I was wondering if any of the geniuses on this list have come up with > >

Re: how to embed shell script within a .BAT file

2014-11-09 Thread Mike Brown
On Mon, Nov 10, 2014 at 05:10:00AM +0300, Andrey Repin wrote: > Greetings, Mike Brown! > > >> > I'm tired of creating pairs of script files: a clickable .BAT file > >> > to invoke my shell script and then my shell script to do the actual > >> > work. > >> > >> google: cygwin shell wrapper script

Re: how to embed shell script within a .BAT file

2014-11-09 Thread Andrey Repin
Greetings, Mike Brown! >> > I'm tired of creating pairs of script files: a clickable .BAT file >> > to invoke my shell script and then my shell script to do the actual >> > work. >> >> google: cygwin shell wrapper script >> I posted mine in the mailing list not once, and it's not the only availa

Re: how to embed shell script within a .BAT file

2014-11-09 Thread Mike Brown
On Mon, Nov 10, 2014 at 12:58:07AM +0300, Andrey Repin wrote: > Greetings, Nellis, Kenneth! > > > I'm tired of creating pairs of script files: a clickable .BAT file > > to invoke my shell script and then my shell script to do the actual > > work. > > google: cygwin shell wrapper script > I post

Re: how to embed shell script within a .BAT file

2014-11-09 Thread cyg Simple
On Fri, Nov 7, 2014 at 4:26 PM, Nellis, Kenneth wrote: > I'm tired of creating pairs of script files: a clickable .BAT file > to invoke my shell script and then my shell script to do the actual > work. I was wondering if any of the geniuses on this list have come > up with a way to embed a shell s

Re: how to embed shell script within a .BAT file

2014-11-09 Thread Andrey Repin
Greetings, Eric Blake! > On 11/07/2014 10:26 PM, Nellis, Kenneth wrote: >> I'm tired of creating pairs of script files: a clickable .BAT file >> to invoke my shell script and then my shell script to do the actual >> work. I was wondering if any of the geniuses on this list have come >> up with

Re: how to embed shell script within a .BAT file

2014-11-09 Thread Andrey Repin
Greetings, Nellis, Kenneth! > I'm tired of creating pairs of script files: a clickable .BAT file > to invoke my shell script and then my shell script to do the actual > work. google: cygwin shell wrapper script I posted mine in the mailing list not once, and it's not the only available solution

Re: how to embed shell script within a .BAT file

2014-11-07 Thread Eliot Moss
Do you really need to embed the script *within* the file? It would be straightforward to *invoke* a script from the file by something along the lines of: bash -c script in the .bat file ... Eliot Moss -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin

Re: how to embed shell script within a .BAT file

2014-11-07 Thread Jeremy Bopp
On 11/07/2014 03:26 PM, Nellis, Kenneth wrote: > I'm tired of creating pairs of script files: a clickable .BAT file > to invoke my shell script and then my shell script to do the actual > work. I was wondering if any of the geniuses on this list have come > up with a way to embed a shell script

Re: how to embed shell script within a .BAT file

2014-11-07 Thread Eric Blake
On 11/07/2014 10:26 PM, Nellis, Kenneth wrote: > I'm tired of creating pairs of script files: a clickable .BAT file > to invoke my shell script and then my shell script to do the actual > work. I was wondering if any of the geniuses on this list have come > up with a way to embed a shell script

how to embed shell script within a .BAT file

2014-11-07 Thread Nellis, Kenneth
I'm tired of creating pairs of script files: a clickable .BAT file to invoke my shell script and then my shell script to do the actual work. I was wondering if any of the geniuses on this list have come up with a way to embed a shell script inside a clickable .BAT file. --Ken Nellis -- Proble