you know .wim 是什么文件,怎么用?

you know .wim 是什么文件,怎么用?,第1张

分类: 电脑/网络 >>软件

问题描述:

you know .wim 是什么文件,怎么用?

解析:

WIM是英文Microsoft Windows Imaging Format (WIM)的简称,它是Windows 基于文件的映像格式。WIM 映像格式并非现在相当常见的基于扇区的映像格式,它是基于文件的。Windows Vista 采用这种格式在新计算机上进行快速安装。WIM 文件存储一个或多个 *** 作系统(如 Windows Vista 或 Windows PE)的副本(称为映像)。使用 WIM 文件维护 *** 作系统很容易,因为您可以在未启动 *** 作系统的情况下,离线添加和删除驱动程序、更新内容以及 Windows 组件。利用 WIM 文件维护 Windows PE 映像与维护 Windows Vista 映像非常相似。

与其他格式相比,通过使用基于文件的映像格式,WIM 具有以下益处:

,WIM 是基于文件的映像格式,

• WIM 映像格式是硬件不可知的,这意味着您只需要一个映像来寻址许多不同的硬件配置。

• WIM 映像格式还允许您在一个实际文件中存储多个映像。例如,Microsoft 可在一个 WIM 映像文件中附带多个 SKU。您可以在单个映像文件中存储具有或不具有核心应用程序的映像。而且,您可谨羡以将其中一个映像标记为可引导映像悉坦,从而允许您从包含在 WIM 文件中的磁盘映像来启动计算机。

• WIM 映像格式还启用了压缩和单一实例,从而可大大减小映像文件的大小。单一实例是一种允许您用一个文件副本的空间来存储多个文件副本的技术。例如,如果睁晌桐映像 1、2 和 3 均包含文件 A,则单一实例将存储文件 A 的单个副本,并将映像 1、2 和 3 指向该副本。

• WIM 映像格式允许您离线维护映像。您可以添加或删除某些 *** 作系统组件、补丁以及驱动程序,而无需创建一个新的映像。例如,现在对于 Microsoft Windows XP 来说,您要花费几个小时来更新一个映像,而 Windows Vista 只需要几分钟的时间即可。例如,要将某个补丁添加到 Windows XP 映像,您必须引导主映像,添加该补丁,然后再次准备映像。对于 Windows Vista,您可离线维护映像。

• 与要求您将磁盘映像部署到其容量大于或等于源磁盘容量的分区的、基于扇区的映像格式不同,WIM 映像格式允许您在任意大小的分区上安装磁盘映像。

• Windows Vista 提供一个用于名为 WIMGAPI 的 WIM 映像格式的 API,开发人员可以使用它来处理 WIM 映像文件。

• WIM 映像格式允许非破坏性的部署。这意味着您可以将数据保留在您应用映像的卷上,因为该映像的应用程序并不清除磁盘的现有内容。

1.登录页面

文件名:know.jsp

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%

String path = request.getContextPath()

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

  <head>

   芦薯 <base href="<%=basePath%>"陪基者>

    

    <title>登录</title>

    

    <meta http-equiv="pragma" content="no-cache">

    <meta http-equiv="cache-control" content="no-cache">

    <meta http-equiv="expires" content="0">    

  </head>

  <body>

      <form action="know2.jsp" method="post">

         <input type="text" name="username"><br/>

         <input type="submit" value="提交"/>

      </form>

  </body>

</html> 2.聊天页面

文件名:know2.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%

String path = request.getContextPath()

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"

%>

<!DOCTYPE HTML>

<html>

  <head>

    <base href="<%=basePath%>">

    

    <title>聊天</title>

    <meta http-equiv="pragma" content="no-cache">

    <meta http-equiv="cache-control" content="no-cache">

    <meta http-equiv="expires" content="0">    

    <meta http-equiv="refresh"content="10url=know2.jsp">

  </head>

   <style>

          .container{

            position:relative

            top:100px

            margin:0 auto

            width: 500px

            height: 300px

            border: 1px solid #aaa

            overflow: hidden

          }

          .usrlist{

            width: 100px

            height: 250px

            background-color: #bbb

            display: block

            锋神float: left

             overflow: scroll

          }

          .chartinfo{

            width: 400px

            height: 250px

            background-color: #ccc

            display: block

            float: left

            overflow: scroll

          }

          .send{

            width: 500px

            height: 50px

            background-color: #ddd

            display: block

            float: left

          }

          select{

            width: 50px

           }

       </style>

    <%

        List<String> chartInfo = new  ArrayList<String>()//保存聊天信息的集合

        List<String> usrs1 =new  ArrayList<String>()//保存登录用户的集合

        if(null!=application.getAttribute("chartinfo")){

           chartInfo =  (List<String>)application.getAttribute("chartinfo")

        }

        if(null!=application.getAttribute("users")){

           usrs1  =  (List<String>) application.getAttribute("users")

        }

        //form 提交过来的数据

        String username = request.getParameter("username")

        String say = request.getParameter("gang")

        String to_usr = request.getParameter("tousr")

        

           if(null!=username&&!"".equals(username)){

            if(!usrs1.contains(username)){

             usrs1.add(username)

             session.setAttribute("users",username)

            }

           }

       application.setAttribute("users",usrs1)//将user1集合放入application

       

       String lgusr = ""

       if(null!=session.getAttribute("users")){

         lgusr = (String)session.getAttribute("users")

       }

       if(lgusr.equals("")||null==lgusr){

        response.setStatus(response.SC_MOVED_TEMPORARILY)

        response.setHeader("Location", "know.jsp") 

       }

         String chart=""

       if(null!=to_usr&&null!=say&&!"".equals(to_usr)&&!"".equals(say)){

           chart = lgusr+" 对   "+to_usr+"说: "+say

        }

        

        if(!"".equals(chart)){

            chartInfo.add(chart)

        }

        application.setAttribute("chartinfo", chartInfo)//将聊天信息集合 放入 application

     %>

      

  <body>

   <div class="container">

     <div class="usrlist">

        <%

         List<String> usrs  =  (List<String>) application.getAttribute("users")

         if(usrs.size()>0){

             for(String u : usrs){

                out.print(u)

                out.print("<br/>")

             }

         }

         %>

     </div>

     <div class="chartinfo">

        <%

     //   out.print(chartInfo.size())

        for(String ct : chartInfo){

          out.print(ct)

          out.print("<br/>")

        }

         %>

     </div>

     <div class="send">

     <form method="post" action="know2.jsp">

         <span>对  </span>

          <select name="tousr" >

          <option></option>

             <%

             for(String u : usrs){

                if(!u.equals(lgusr)){

                  out.print("")

                  out.print("<option value='"+u+"'>"+u+"</option>")

                }

                

             }

              %>

          </select> 

           <span>  说 :</span>

           <input type="text" name="gang"style="width: 300px">

           <input type="submit" value="发送">

           </form>

     </div>

   </div>

  </body>

</html>

这是两个jsp文件,分别是know.jsp 和know2.jsp。你说的功能基本上都达到。


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/tougao/12286161.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-24
下一篇 2023-05-24

发表评论

登录后才能评论

评论列表(0条)

保存