|
Posted by mb@xato.net on March 14, 2007, 5:31 pm
Please log in for more thread options
On Mar 14, 1:30 pm, "roga"
> I have a password containing the ampersand, however if I try and run a batch
> file with (e.g.) schtask /u user /p p&ssword the ampersand confuses the cmd.
>
> Is there a reliable way of handing this? (quotation marks sometimes work,
> but sometimes nested quote marks seem to make things overcomplicated)
Try escaping the ampersand with a caret: p^&ssword
Of course, its not such a good idea to put a password in a batch
file :)
Mark Burnett
http://xato.net
|