常用鏈接

          統計

          最新評論

          2011年12月7日 #

          Create Struts 2 Application in Eclipse : HTTP Status 500

          http://viralpatel.net/blogs/2009/12/tutorial-create-struts-2-application-eclipse-example.html 

          problem:

          HTTP Status 500 

          java.lang.NullPointerException 	
          org.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69)
          com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)
          resolve problem:
          1. struts.xml should under src
          2. in struts.xml:  
          <action name="login" method="excute"
          class="net.viralpatel.struts2.LoginAction">

          posted @ 2012-04-21 02:41 九寶 閱讀(407) | 評論 (0)編輯 收藏

          How to check file properties through WMI command line (fw)

          How to check file properties through WMI command line

          24.Sep.2009 | by Gusac | Filed in: Articles, Tutorials

          With the lack of Graphical Interface on Windows 2008 Core server there comes a need of performing a lot of task through command line. One of which is checking file properties like file version, path, product verision etc. Luckily we have a command that makes this task simple. On a side note, We can also run the same command on other operating systems like Windows Xp, 2003, vista.

          Here is the command:
          wmic datafile where name='c:\\windows\\system32\\notepad.exe'

          Click here to view the enlarged screenshot

          Notice that we have used two backslashes \\ in the file path. Also, notice that the path is enclosed in the single quotes.
          The output will be confusing to read in command prompt window. To read and understand it better, we can take the output in text format and read it in notepad.

          While doing so, please do NOT wrap the text.
          wmic datafile where name='c:\\windows\\system32\\notepad.exe' > out.txt

          Click here to view the enlarged screenshot

          The output will reveal the file properties like Hidden, Path, Drive, Version Caption, Access rights etc.

          To get one particular property of a file we need to modify the command a little bit. We need to use the GET Alias injunction to the command mentioned above. Let's say we want to check the version for the file notepad.exe. The command that is used for this is:
          wmic datafile where name='c:\\windows\\system32\\notepad.exe' get version

          Similarily, there is a list of properties that can be fetched through this command line. They are:

          Access Rights
          Caption
          Class Name
          Compressed
          Compression Method
          Computer System Class Name
          Computer System Name
          Creation Date
          Current File Open Count
          Description
          Drive
          Eight Dot Three File Name
          Encrypted
          Encryption Method
          File Extension
          File Name
          File System Class Name
          File System Name
          File Type
          Hidden
          Install Date
          Last Accessed
          Last Modified
          Manufacturer
          Name
          Path
          Readable
          Should Be Archived
          Size
          Status
          System File
          Version
          Writeable

          posted @ 2011-12-07 22:29 九寶 閱讀(369) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 永川市| 英吉沙县| 大名县| 嘉兴市| 诸城市| 车致| 鄯善县| 洪泽县| 汝南县| 贵州省| 三台县| 波密县| 彰武县| 曲阳县| 东辽县| 出国| 易门县| 绥德县| 富平县| 布拖县| 日照市| 惠水县| 兴仁县| 宁陵县| 鹿泉市| 资阳市| 乌兰察布市| 涞源县| 西安市| 镇江市| 铜梁县| 吉木萨尔县| 大姚县| 铁力市| 江川县| 留坝县| 武安市| 双江| 扬州市| 孟津县| 乌什县|