[batch] %1 with spaces no "

May 18, 2010 at 05:33:24
Specs: Windows 7
abc.cmd "this is a fox"

echo %1 should output: this is a fox

no ""

how do i do this?

problem i find is, if i add "", %1 will include "" and if i dont, then, %1 = this

lol how i fix this?

and oh yeah, i hope not to use set %fox% = this is a fix

then abc.cmd %fox%

as a solution.. cuz i intend to do something like abc.cmd %this%is a fox

.


See More: [batch] %1 with spaces no "

Report •

#1
May 18, 2010 at 06:57:36
%~1


Report •

#2
May 18, 2010 at 07:39:00
you my friend, are a professor.

.


Report •
Related Solutions


Ask Question