|
Answer» Hi
i have a batch file that takes password from a txt file but the problem is the password contain special character "!" and thus giving me an error, any suggestions for that I'm sure we can help you, but we need some more details as to what the problem is.
Is this running in a command prompt under a CERTAIN version of Windows? How does the batch file get the password from the text file? What does it need to do with the password? What is the error you are getting?The version of the OS is Microsot Windows XP The version of DOS is 5.2.3790 I have stored the passwords in a bat file say for ex y.bat The file which requires password a.bat(say) have code that specifies token number .
now at token 15 and 23 in y.bat I have stored the username and password that a.bat requires.
Somehow I dont control these usernames and passwords, they are given to me by third person.
Earlier these SCRIPTS were working fine , last week after the password change it started CORRUPTING .I have updated the password in y.bat
The actaul problem lies that the password contains "^" (carot) special character and therefore i get a error message the password is not authenticated.How are the passwords written to the file? And how are the passwords read back from the file?
The '^' character can have special meaning in a batch file, so depending on how they are written or read from the file we will have to figure out a WAY to escape or substitute that character.Could not get your question how are the passwords witten to the file. they are wiritten as a simple txt format in NOTEPAD file.
|