|
-
Apr 10th, 2001, 06:04 PM
#1
Thread Starter
New Member
Please help,
I am using win 95.
In my code I Create a file using:
Dim fs, a As Object
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.createtextfile(\\servername\folder\filename.txt, True)
a.writeline Param
a.Close
when I try to execute, I have this error:
Run time error'429'
Active X component can't crate object
Anybody know how to solve this problem?
If I need to install new dll, what file should I install, and where should I put?
Thank you,
dummy
-
Apr 11th, 2001, 10:06 AM
#2
Where are you using this, in a web page, a dll, a vb app ?
If it's the first one, it could be your internet settings are too high - in IE, tools/view > internet options > security.
If not, you can use the following :
Code:
Open \\servername\folder\filename.txt for output as #1
'some code
Close #1
If the file isn't found, this creates the text file for you so you shouldn't need the FSO object.
-
Apr 12th, 2001, 06:23 PM
#3
Thread Starter
New Member
but when I try:
Open //servername/folder/filename.txt For Output As #1
Write #1, "This is the parameter";
Close #1
I get another message error:
Error '52' Bad File name or number
What should I do?
-
Apr 17th, 2001, 02:37 AM
#4
That would be my fault [slow fading whistle ...]
Place this in double quotes :
Open "//servername/folder/filename.txt" For Output As #1
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
|