Firstly, if this topic has already been discussed I apologise for repeating a thread but whenever I search for FileSystemObject it says theres a load of results but I cant actually see any of em.
Anyway, Ive been writing an application in VB6 and a friend lent me his copy of VS.NET to check out and I been trying to write the same project in that (bear in mind Im a bit of a noob). I was using FileSystemObject to read and write to text files and get Dir and Folder info etc and I had it working perfectly. The problem Im have now is that VB.NET wont let me use the FSO.
I have referenced Microsoft Scripting Runtime and checked that it does indeed appear in the references but still no dice. I have tried both
Dim fso As New FileSystemObject
(in this case FileSystemObject doesnt even appear in the list)
and
fso = CreateObject("Scripting.FileSystemObject")
but it just wont work.
Any help would be greatly appreciated as I cant proceed any further with my App until I get this working.
Cheers!
Anyway, Ive been writing an application in VB6 and a friend lent me his copy of VS.NET to check out and I been trying to write the same project in that (bear in mind Im a bit of a noob). I was using FileSystemObject to read and write to text files and get Dir and Folder info etc and I had it working perfectly. The problem Im have now is that VB.NET wont let me use the FSO.
I have referenced Microsoft Scripting Runtime and checked that it does indeed appear in the references but still no dice. I have tried both
Dim fso As New FileSystemObject
(in this case FileSystemObject doesnt even appear in the list)
and
fso = CreateObject("Scripting.FileSystemObject")
but it just wont work.
Any help would be greatly appreciated as I cant proceed any further with my App until I get this working.
Cheers!