Free for PREMIUM members
[Webinar] Streamline your web hosting managementRegister Today
REM Adjust path to 7Zip program as needed below
set "zip=c:\program files\7-zip\7z.exe"
REM Set source and destination folder names
REM Make sure the needed file exists, exit if it does not
if not exist "%BaseDir%\project.war" exit /b
REM Copy the WAR file over as a ZIP and rename
copy "%BaseDir%\project.war" "%BaseDir%\projectcopy.zip"
REM Extract the TEST.JAR file to the destination folder
"%zip%" e "%BaseDir%\projectcopy.zip" -o"%DestDir%" test.jar
Open in new window
Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.