<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have URL string like this in my batch file as parameter to another
> program:
>
> set APP_PARAMS=-labres
> http://64.107.55.37:9903/labl_ressrv...00&recov=false
>
> echo %APP_PARAMS%
> The problem is char '&'. The output is:
>
> -labres http://64.107.55.37:9903/labl_ressrv...GET?res=193301
>
> Everything after the '&' is gone. How can I fix this?
>
> Thank you.
>
NT4/2K/XP/2K3 (NT+ systems) are discussed in alt.msdos.batch.nt as the
techniques used differ markedly from DOS/9x methods.
----- batch begins -------
[1]@echo off
[2]set APP_PARAMS="-labres
http://64.107.55.37:9903/labl_ressrv_1/NuMegSS3/GET?res=193301&subres=ss_193301&heartbeat=3500&recov=false"
[3]for /f "tokens=1*delims==" %%i in ( ' set app_params ' ) do echo %%~j
------ batch ends --------
Lines start [number] - any lines not starting [number] have been wrapped
and should be rejoined. The [number] that starts the line should be removed
The spaces surrounding the single-quotes are for emphasis only. The SPACES
are not required but the single-quotes ARE required.