ActiveX Show File Properties

Show File Properties

<HTML><HEAD>
<TITLE>Show File Properties</TITLE>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function validate() {
	if(file.selectFile.value<=0) {document.write('Invalid file!');return false;}
	else info();
}
function info() {
	var myFile = file.selectFile.value;
	nobj = new ActiveXObject("Scripting.FileSystemObject");
	f = nobj.GetFile(myFile);
	fcreate = f.DateCreated;
	fname = f.Name;
	faccess = f.DateLastAccessed;
	fmod = f.DateLastModified;
	fpath = f.Path;
	fsize = Math.round((f.Size/1024)*10)/10;
	ftype = f.Type;
	fdos = f.ShortName;
	return(document.write('File: '+fname+'<BR>Created: '+fcreate+'<BR>Accessed: '+faccess+'<BR>Modified: '+fmod+'<BR>Location: '+fpath+'<BR>Size: '+fsize+'Kb<BR>Type: '+ftype+'<BR>MS-DOS name: '+fdos+''));
}
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="file" onSubmit="validate();return false">
<INPUT TYPE="file" name="selectFile"><BR>
<BUTTON TYPE="submit">Show Info</BUTTON>
</FORM>