Archived Boards > COM Automation and dotNet

Finally Getting the Hang of It

(1/1)

stanl:
works well:

--- Code: ---;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 

--- End code ---

Deana:
Indeed. Thanks for sharing.

Navigation

[0] Message Index

Go to full version