123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|48|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> using special characters in .bat file?

Sat, 05 Jan 2008, 08:22
spinal
This is a little irritating, I am trying to run a command line application from a .bat file, but one of the arguments has a % in it, the problem is, msdos sees % in a .bat file as a special character and assumes im trying to use a variable rather than a '%' so the application is failing to do what its supposed to.

Can anyone explain to me how to get a .bat file to use a % as a % ?

line this -

app -setting output%d.bmp

what the bat file is running is -

app -setting outputd.bmp


I NEED to be able to use the %d.

-=-=-
Check out my excellent homepage!
Sat, 05 Jan 2008, 08:35
Teasy
Try %%
Sat, 05 Jan 2008, 08:38
spinal
That worked fine, its been about 10 years since I tried to write a .bat file, Thanks for the help.

-=-=-
Check out my excellent homepage!
Sun, 06 Jan 2008, 08:49
Teasy
Same here