viewpoint-particle

Author Topic: Finally Getting the Hang of It  (Read 2344 times)

stanl

  • Pundit
  • *****
  • Posts: 796
Finally Getting the Hang of It
« on: June 17, 2013, 11:01:51 am »
works well:
Code: [Select]
;Winbatch 2013 - CLR Generate Password
;
;
;Stan Littlefield June 17, 2013
;////////////////////////////////////////////////////////////////////////////////////////////////////////
pwklength=9
pwnoalpha=4
ObjectClrOption("use","System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
oSecure = ObjectClrNew('System.Web.Security.Membership')   
cPw =  oSecure.GeneratePassword(pwklength,pwnoalpha)
oSecure=0
Message("",cPW)
Exit 

Deana

  • Wilson WindowWare Tech Support
  • Pundit
  • *****
  • Posts: 1183
  • WinBatch® can do it.
    • WinBatch Tech Support Database
Re: Finally Getting the Hang of It
« Reply #1 on: June 17, 2013, 11:22:44 am »
Indeed. Thanks for sharing.
Deana F.
Technical Support
Wilson WindowWare Inc.