Batch: Storing string variables? -
i'm coding rpg , and when set variable want name,
when "echo name %name%", stored name in,
it shows "my name 0".
however, when code smaller program, works. can please me?
(for funny reason can't comment)
you may have used /a parameter while setting variable previously. mean variable treated if holding number. set /a name=name should set name=name.
also, dbenham mentioned, set /a name=name evaluates 0, explaining problem.
Comments
Post a Comment