Hi all
Using Createobject function we can create an object.
In order to create the object in the server we have to mention the server name in the option paramenter for server name.
I want to create a file system object in server and from that I want to create some folders.
The code I'm using for this is :
Dim FS As Object
Dim a As Object
Set FS = CreateObject("Scripting.filesystemobject", "server"
Set a = FS.createtextfile("C:\testfile.txt", True)
a.writeline ("This is a test"
a.Close
I had all the access rights with the server machine "server".
If I am not giving the server name, the object is getting created on the local machine which is ofcourse obvious and according to the functionality of the createobject function.
But when I'm giving the server name "server" , then I'm getting the runtime error 429 stating that 'Activex component can't create object" some thing.
one more thing I would like to mention here is that my machine is running on windows 98 and server is running on windows NT and are connected using Local Area Network.
Using Local Area Network means we can mention the path using "\\server\c\testfile.txt" and it is ofcourse working fine.
But What I need is to get the functionality under ideal situations. i.e., server may not be located locally ( I mean in our LAN.).
Any help or information regarding this will be highly appreciated. [sig][/sig]
Using Createobject function we can create an object.
In order to create the object in the server we have to mention the server name in the option paramenter for server name.
I want to create a file system object in server and from that I want to create some folders.
The code I'm using for this is :
Dim FS As Object
Dim a As Object
Set FS = CreateObject("Scripting.filesystemobject", "server"
Set a = FS.createtextfile("C:\testfile.txt", True)
a.writeline ("This is a test"
a.Close
I had all the access rights with the server machine "server".
If I am not giving the server name, the object is getting created on the local machine which is ofcourse obvious and according to the functionality of the createobject function.
But when I'm giving the server name "server" , then I'm getting the runtime error 429 stating that 'Activex component can't create object" some thing.
one more thing I would like to mention here is that my machine is running on windows 98 and server is running on windows NT and are connected using Local Area Network.
Using Local Area Network means we can mention the path using "\\server\c\testfile.txt" and it is ofcourse working fine.
But What I need is to get the functionality under ideal situations. i.e., server may not be located locally ( I mean in our LAN.).
Any help or information regarding this will be highly appreciated. [sig][/sig]