-
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
-
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. ;)
-
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?
-
That would be my fault [slow fading whistle ...]
Place this in double quotes :
Open "//servername/folder/filename.txt" For Output As #1