|
-
Sep 12th, 2003, 05:14 AM
#1
Thread Starter
Hyperactive Member
VBScript... FileSystemObject
Is it possible to use the FileSystemObject in VBScript on a webpage?
I tried to do...
Set FSO = new Scripting.FileSystemObject
and
Set FSO = CreateObject("Scripting.FileSystemObject")
and neither would work...
Does Internet Explorer also need to have specific security settings for this to work?? Or does there need to be something before this code?
Thanks in advance!
-
Sep 12th, 2003, 05:42 AM
#2
Frenzied Member
If you are talking about client-side then no you can't use it.
-
Sep 12th, 2003, 08:35 AM
#3
Frenzied Member
you can use the FileScriptingObject but only on the server site..
VB Code:
Set fs = Server.CreateObject("Scripting.FileSystemObject")
path = "C:\myFolder\myFile.txt"
If(fs.FileExists(path)) then
'open and read the file
Else
'File doesn't exist
End If
Set fs = nothing
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|