Greetings, OwN-3m-All!
> Thanks guys. That was it. I decided to remove the trailing slash for
> my purposes.
> set WD=%~dp0
> set WD=%WD:~0,-1%
> It's working now!
Alternatively, you could translate backslashes to regular slashes. Should work
too.
SETLOCAL ENABLEEXTENSIONS
SET CWD=%CD:\=/%
Thanks guys. That was it. I decided to remove the trailing slash for
my purposes.
set WD=%~dp0
set WD=%WD:~0,-1%
It's working now!
On Mon, Nov 14, 2016 at 12:23 PM, Brian Inglis
wrote:
> On 2016-11-14 07:43, Gerrit Haase wrote:
>>
>> 2016-11-13 23:19 GMT+01:00 OwN-3m-All wrote:
>>>
>>> I'd li
On 2016-11-14 07:43, Gerrit Haase wrote:
2016-11-13 23:19 GMT+01:00 OwN-3m-All wrote:
I'd like to automate Cygwin installation, but I don't want to rule
out the possibility that a path with a space will not be used.
You'll get a warning from Setup: it is strongly recommended, to use a
root pat
> Try adding a dot:
>
> set WD=%~dp0
> echo "%WD%."
> "setup-x86_64.exe" --root "%WD%." --local-package-dir "%WD%."
> pause
or
set WD=%~dp0.
...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.h
2016-11-13 23:19 GMT+01:00 OwN-3m-All wrote:
> cd "C:\test\with space"
> set WD=%~dp0
> echo "%WD%cygTemp"
> "setup-x86_64.exe" --root "%WD%" --local-package-dir "%WD%cygTemp"
> pause
>
The problem is this trailing backslash in the directory name.
D:\temp\Neuer Ordner\cygwinpkg>setup_script.bat
Is there a way to pass in paths that contain a space in the --root and
--local-package-dir Cygwin command-line arguments? Everything I've
tried doesn't work.
Here's a sample batch script to reproduce the issue (create a
directory with a space in it, copy Cygwin setup exe, and then save
batch scri
6 matches
Mail list logo