|Razor, you said "use VBScript and IE" - can you tell me how to use IE for this purpose?|
To the original poster: in Windows XP, and only in XP, you can use this batch file to get a password:
echo wscript.echo CreateObject("ScriptPW.Password").GetPassword() > %0:GetPassword.vbs
for /f "delims=" %%a in ('cscript /nologo %0:GetPassword.vbs') do set password=%%a
echo Your password is: %password%
(If you think having a VB script as an alternate data stream attached to a batch file is too flash for your own good, then just keep them as two separate files.)
Unfortunately, Vista and later have taken a backward step and removed the ScriptPW.Password object.