Passing argument to DOS script containing a quote
Posted: 16 Jan 2009 03:47
I am trying to test LDAP entry and passwords.
The password may contain the quote character.
I am trying to call my .bat file by:
d:\misc>Mytest.bat "Test Person" <password>
My script expects two arguments.. Name and Password.
Let's say that Test Person has the password ABV9"cc1
What must I do to get the DOS command parser to pass ABV9"cc1 as a string argument so that the script can use it????????????????????
I have tried 'ABV9"cc1' and ABV9\"cc1 but always get invalid command syntax.
The password may contain the quote character.
I am trying to call my .bat file by:
d:\misc>Mytest.bat "Test Person" <password>
My script expects two arguments.. Name and Password.
Let's say that Test Person has the password ABV9"cc1
What must I do to get the DOS command parser to pass ABV9"cc1 as a string argument so that the script can use it????????????????????
I have tried 'ABV9"cc1' and ABV9\"cc1 but always get invalid command syntax.