Get file size - WeOnlyDo Discussion board

Get file size (General questions)

by paco, Tuesday, September 07, 2004, 11:04 (7181 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

Re: Get file size

by wodSupport, Tuesday, September 07, 2004, 23:22 (7180 days ago) @ paco

Paco,

hi. I am not sure I understand your question. Can you please rephrase it and give me more details?

Thanks.