Passing input parameter to batch file that contains equal sign

I have the following command from a UNIX system that will launch a batch file on a Windows system.
The batch file simply calls up an IE session with the URL that is the input parameter to the batch file.

rsh hostname -l username c:\\temp\\test.bat ""

The problem is that the batch file does not recognize the "=" sign
It also gives me this
    'DEF'' is not recognized as an internal or external command
so it may be having trouble with the "&" sign.

How can i pass a URL to a batch file where the URL contains "=" and "&" signs?
Who is Participating?
jkrConnect With a Mentor Commented:
Note that you need the quotes, though. I assume that the rsh command expansion removes them, try to escape them on the UN*X side as

export URL ="\"\""
rsh hostname -l username c:\\temp\\test.bat $URL
I assume there is a problem with the contents of the batch file. If you just use

set URL=%1
echo %URL%

and call that like

test ""

that works fine.
RudePuppyDogAuthor Commented:
When it opens the IE window, the URL is
      so I think its getting confused with the "=" in the URL

set URL=    would have multiple "=" signs.


set URL=%1
echo %URL%

"%ProgramFiles%\Internet Explorer\iexplore.exe" %URL%

as the batch file works fine.
RudePuppyDogAuthor Commented:
Closer, but when I escape the quotes on the UNIX side, the browsers opens up with the following URL:

Its dropping the "&" and everything after that.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.