This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to embed shell script within a .BAT file
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Andrew DeFaria <Andrew at DeFaria dot com>, cygwin at cygwin dot com
- Date: Mon, 10 Nov 2014 23:50:09 +0300
- Subject: Re: how to embed shell script within a .BAT file
- Authentication-results: sourceware.org; auth=none
- References: <545D3E21 dot 2030306 at bopp dot net> <0D835E9B9CD07F40A48423F80D3B5A702E839BB9 at USA7109MB022 dot na dot xerox dot net> <1763099025 dot 20141110215741 at yandex dot ru> <m3r67t$1lf$1 at ger dot gmane dot org>
- Reply-to: cygwin at cygwin dot com
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 it's own CWD to be UNC path.
>> You can still start programs by full UNC path from CMD.
>> Though, with correct settings (see above), the point is moot.
> I always thought it odd that MS invents UNC's then fails to support them
> properly in their own tools.
> Try pushd on a UNC path...
Since migration to Win7, I'm using native symlinks, and pretty happy about it.
I still occasionally hit the UNC path here and there from old shortcuts, but
overall, it's all "local" filesystem. :b
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 10.11.2014, <23:49>
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple