开发者

Create a bat file to encrypt and decrypt (RSA) web config

开发者 https://www.devze.com 2023-02-12 12:23 出处:网络
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 Fi

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消