Set filesys = CreateObject("Scripting.FileSystemObject") 
Author Message
 Set filesys = CreateObject("Scripting.FileSystemObject")

I made VBScript in HTML but it works just on my Computer, on my friends
computer or on any other it doesn't work. (they have Internet Explorer 5
like me) The Script is:

<script language="vbscript">
Set filesys = CreateObject("Scripting.FileSystemObject")

If Not filesys.FileExists("c:\op.1st") Then
        'none
Else
         Location.href = " http://www.*-*-*.com/ "
End If
</script>

--

|          |       |  |  /      /\
|          |       |  |/ \    /__\
|          \___/  |    \ /       \
|____  Z   E   M   U   N



Wed, 03 Sep 2003 18:08:21 GMT  
 Set filesys = CreateObject("Scripting.FileSystemObject")
Does this help?

<script language="vbscript">
Set filesys = CreateObject("Scripting.FileSystemObject")
If filesys.FileExists("c:\op.1st") <> True Then
msgbox "file does not exist"
Else
msgbox "file exist"
End If
</script>


Quote:
> I made VBScript in HTML but it works just on my Computer, on my friends
> computer or on any other it doesn't work. (they have Internet Explorer 5
> like me) The Script is:

> <script language="vbscript">
> Set filesys = CreateObject("Scripting.FileSystemObject")

> If Not filesys.FileExists("c:\op.1st") Then
>         'none
> Else
>          Location.href = "http://www.microsoft.com"
> End If
> </script>

> --

> |          |       |  |  /      /\
> |          |       |  |/ \    /__\
> |          \___/  |    \ /       \
> |____  Z   E   M   U   N



Thu, 04 Sep 2003 01:46:52 GMT  
 Set filesys = CreateObject("Scripting.FileSystemObject")
asked and answered in microsoft.public.inetsdk.programming.scripting.vbscript

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--

Quote:

> I made VBScript in HTML but it works just on my Computer, on my friends
> computer or on any other it doesn't work. (they have Internet Explorer 5
> like me) The Script is:

> <script language="vbscript">
> Set filesys = CreateObject("Scripting.FileSystemObject")

> If Not filesys.FileExists("c:\op.1st") Then
>         'none
> Else
>          Location.href = "http://www.microsoft.com"
> End If
> </script>

> --

> |          |       |  |  /      /\
> |          |       |  |/ \    /__\
> |          \___/  |    \ /       \
> |____  Z   E   M   U   N



Thu, 04 Sep 2003 06:46:08 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Set filesys = CreateObject("Scripting.FileSystemObject")

2. Set fs = CreateObject("Scripting.FileSystemObject")-error

3. Set fso = Server.CreateObject("Scripting.FileSystemObject")

4. CreateObject("Scripting.FileSystemObject") doesnt work

5. CreateObject("Scripting.FileSystemObject")

6. CreateObject("Scripting.FileSystemObject") Error

7. ** ? concerning CreateObject("Scripting.FileSystemObject")

8. CreateObject("Scripting.FileSystemObject") Error

9. ** ? concerning CreateObject("Scripting.FileSystemObject")

10. Trouble with CreateObject("Scripting.FileSystemObject")

11. Server.CreateObject("Scripting.FileSystemObject")

12. CreateObject("Scripting.FileSystemObject") not working

 

 
Powered by phpBB® Forum Software