Get file size - WeOnlyDo Discussion board

Get file size (General questions)

by paco, Tuesday, September 07, 2004, 11:04 (7383 days ago)

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 [*]