This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: argv @-expansion with pathname containing spaces


On 2012-12-20, Andrey Repin wrote:
> Greetings, Denis Excoffier!
> 
>> For the moment, the best solution i have is to copy
>> the original file into, say, %TEMP%\dummy.txt, hoping that %TEMP%
>> will not contain any spaces:
> 
> It will, if %USERPROFILE% do. On most systems, user's %TEMP% will be located
> in %LocalAppData%/Temp, which is derived from %USERPROFILE%.
> 
I suppose i can afford this case, and test it using:

set x=%TEMP: =X% 
if "%x%"~ neq "%TEMP%"~ (
  echo not implemented
  goto error
)

Thank you,

Regards,

Denis Excoffier.


--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]