Can anyone show me how to create a bat file that will encrypt and decrypt a web config What I want it t开发者_如何转开发o do is open up the Visual Studios 2010 Command Prompt start in "C:\Program Files\Microsoft Visual Studio 10.0\VC\" and Run the following for Decrypt. aspnet_regiis -pdf "appSettings" "C:\Development Projects\Web Applications\projectName" then the bat file close
If you can show me how to do one I can do the other. I am just not sure how to do it.
Thanks!
Not sure about your specific command requirements, but what problems are you experiencing?
@ECHO OFF
CD "C:\Program Files\Microsoft Visual Studio 10.0\VC\"
aspnet_regiis -pdf "appSettings" "C:\Development Projects\Web Applications\projectName"
That will do what you describe, unless there's something peculiar about aspnet_regiis.
精彩评论