If you are asking how to remove the quotes change %1 and %2 to %~1 and &~2. See For command.
--
----------------------------------------------------------
http://www.uscricket.com
"David Candy" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
Just as you said. Why did you bother asking?
C:\>"C:\Documents and Settings\David Candy\Desktop\New Text Document (2).bat" "C:\Documents and Settings\David Candy\Desktop\n
ewrast.pdf" "C:\Documents and Settings\David Candy\Desktop\newmccarthy.pdf"
C:\>echo "C:\Documents and Settings\David Candy\Desktop\newrast.pdf"
"C:\Documents and Settings\David Candy\Desktop\newrast.pdf"
C:\>echo "C:\Documents and Settings\David Candy\Desktop\newmccarthy.pdf"
"C:\Documents and Settings\David Candy\Desktop\newmccarthy.pdf"
I duplicated it because I thought it was a trick question.
--
----------------------------------------------------------
http://www.uscricket.com
"Vivek Srivastav" <(E-Mail Removed)> wrote in message news:On%(E-Mail Removed)...
> How can I pass multiple long file names to batch files:
>
> test.bat "C:\Program Files\test" "c:\Program Files\Another Dir"
>
>
> I want the following result in the batch file
> echo %1 should give me: C:\Program Files\test
> echo %2 should give me: C:\Program Files\Another Dir
>
> Is there some way this can be done?
>
> thanks
> vivek
>
>
>
>
>
>