document.write('<div class="c" style="font-family: monospace;"><br />');
document.write('<span style="color: #ff0000;">\'file_info.vbs - print out information about boot.ini<br />');
document.write('Option Explicit<br />');
document.write('Dim refFile<br />');
document.write('Set refFile = GetObject(&quot;winMgmts:CIM_DataFile.Name=\'</span>c:\boot.<span style="color: #202020;">ini</span><span style="color: #ff0000;">\'&quot;)<br />');
document.write('WScript.echo &quot;Information about &quot; &amp; refFile.Name<br />');
document.write('With refFile<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;Name: &quot; &amp; .Name<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;Size: &quot; &amp; .FileSize<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;Created on &quot; &amp; GetVBDate(.CreationDate)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;Last modified on &quot; &amp; GetVBDate(.LastModified)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;Last accessed on &quot; &amp; GetVBDate(.LastAccessed)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;Short filename: &quot; &amp; .EightDotThreeFileName<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;Filetype: &quot; &amp; .FileType<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;Extension: &quot; &amp; .Extension<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;Path: &quot; &amp; .Path<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;Drive: &quot; &amp; .Drive<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; If .Archive then WScript.echo &quot;Archive bit set&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; If .Hidden then WScript.echo &quot;File is hidden&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; If .System then WScript.echo &quot;System File&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; If .Compressed then WScript.echo &quot;Compressed with &quot; &amp; .CompressionMethod<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; If .Encrypted then WScript.echo &quot;Encrypted with &quot; &amp; .EncryptionMethod<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; If .Readable then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;You may read this file&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; Else<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;You may not read this file.&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; End If<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; If .Writeable then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;You may write to this file&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; Else<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WScript.echo &quot;You may not write to this file&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; End If<br />');
document.write('End With<br />');
document.write('Set refFile = Nothing<br />');
document.write('<br />');
document.write('\'</span>Don<span style="color: #ff0000;">\'t forget to include this function...<br />');
document.write('Function GetVBDate(wd)<br />');
document.write('GetVBDate = DateSerial(left(wd,4),mid(wd,5,2),mid(wd,7,2)) _<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + TimeSerial(mid(wd,9,2),mid(wd,11,2),mid(wd,13,2))<br />');
document.write('End Function<br />');
document.write('&nbsp;</span></div>');
document.write('<br />&nbsp;<br /><div style="font-size: 12px">Brought to you by the community at <a href="http://www.bytemycode.com/snippets/snippet/141/1/" target="_blank">byteMyCode</a>.</div>');
