win BAT programming help..

hey guys...can anyone of you write me a small batch file for the below objectives......i dont know the batch commands:ashamed: ... this is a noob job for those who know...so.....help me a lil.

* get a string from stdin...(say str1)
* compare with other string..(say password)
* if (str1==password)
then
rename 1.xxx to 2.yyy
*end///lol..

simple program...
i dont know the command to accept values from keyb in BAT files...so some help please...:)
 
Back
Top