Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch program with % as parameter

Status
Not open for further replies.

spicysudhi

Programmer
Nov 10, 2003
575
0
0
FR
hi,

I have written a batch program to run some application related jobs. The applications needs to pass a parameter like below

LOG=^User ID:^?Password:;LOCAL;OR;ORACLE@%s@CRN/%s@COLSEQ="

However when this is executed from .BAT file, the %S is changing as S; so the result executed commans will be

LOG=^User ID:^?Password:;LOCAL;OR;ORACLE@s@TRWCRN/s@COLSEQ="

Is there anyway to parse this?

thanks in advance.

regards,
Sudhi

 
If its similar to the for command in DOS, you may need to add a second % symbol, so make it %%S instead of %S
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top