In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Today, I will talk to you about how to use Bat to automatically decompress and release asp.net programs, many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
1 decompress the compressed package
2 replace the file
3 stop service
4 rebuild the virtual directory
5 restart the service
@ echo 1, the path to Zipexe compressed assemblies @ echo 2, the path to zipFileName compressed files @ echo 3, the path to ylxt unzipped files @ echo 3, files that will not be modified in the webconstant release directory. And folders It needs to be consistent with the directory structure of the virtual directory @ echo 4, the parent directory of the PubparentFolder virtual directory @ echo 5, PubFolderName virtual directory name set Zipexe= "C:\ Program Files\ 2345Soft\ HaoZip\ HaoZipC.exe" set zipFileName= "C:\ iisweb\ copyFolder\ ylxt.zip" set PubFolderName= "ylxt" set ylxt= "C:\ iisweb\ copyFolder\"% PubFolderName% set webconstant= "C:\ iisweb\ copyFolder\ webconstant" set PubparentFolder= "C:\ iisweb\" set PubFolder=%PubparentFolder%%PubFolderName% echo deletes previously extracted files . Rem rd / s / Q% ylxt% echo decompresses the file through the compression software. Pause% Zipexe% x% zipFileName%-o% ylxt%-y echo copies files that will not be modified. Pause xcopy% webconstant%% ylxt% / s / e / y pause echo stop application pool rem% windir%\ system32\ inetsrv\ appcmd stop APPPOOL wxzs% windir%\ system32\ inetsrv\ appcmd stop APPPOOL ylxt echo back up the original virtual directory set YYYYmmdd=%date:~0,4%%date:~5,2%%date:~8,2% set "YYYYmmdd=%YYYYmmdd: = 0%" set hhmiss=%time:~0,2%%time:~3,2%%time:~6,2% set "hhmiss=%hhmiss: = 0%" ren% PubFolder%% PubFolderName %% YYYYmmdd%_%hhmiss% echo replaces the new extracted directory with the original virtual directory move% ylxt%% PubparentFolder% echo launch application pool rem% windir%\ system32\ inetsrv\ appcmd start APPPOOL wxzs% windir%\ system32\ inetsrv\ appcmd start APPPOOL ylxt pause Do you have any further understanding of how to use Bat to automatically extract and distribute asp.net programs? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.