Get file size (General questions)
Hi!!
Using your html example, we change it for uploading but when we want to create a file in VBScript we can't do it because the activex object can't create it. How we can do that?
Our code:
...
<tr>
<td>File name:</td>
<td><input type=file name=f size= 50 id= bExaminar ></td>
</tr>
<tr>
<script language= VBScript ><!--
Sub bExaminar_OnChange
dim filesys, file
set filesys = CreateObject( Scripting.FileSystemObject )
set file = filesys.GetFile(fichero.value)
tam.value = fichero.value
ProgressBar1.value = file.size
End Sub
-->
</script>
...
In the code we get the path and then we want to obtain size in order to use it in a progress bar.
thanks
paco
Complete thread:
- Get file size - paco, 2004-09-07, 11:04
- Re: Get file size - wodSupport, 2004-09-07, 23:22