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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -