473,569 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File System Object


Hello,
I'm new to dot net and I can't seem to find the object name that is
equivalent to Scripting.FileS ystemObject. Can anyone help?

Thanks,
V
Nov 17 '05 #1
8 7455

and also.. for the functions right(string, len_returned) and left(string,
len_returned)

"Vicky S" <ra********@com cast.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..

Hello,
I'm new to dot net and I can't seem to find the object name that is
equivalent to Scripting.FileS ystemObject. Can anyone help?

Thanks,
V

Nov 17 '05 #2

and also.. for the functions right(string, len_returned) and left(string,
len_returned)

"Vicky S" <ra********@com cast.net> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..

Hello,
I'm new to dot net and I can't seem to find the object name that is
equivalent to Scripting.FileS ystemObject. Can anyone help?

Thanks,
V

Nov 17 '05 #3
Take a look at System.IO

"Vicky S" <ra********@com cast.net> wrote in message
news:#3******** ******@TK2MSFTN GP10.phx.gbl...

Hello,
I'm new to dot net and I can't seem to find the object name that is
equivalent to Scripting.FileS ystemObject. Can anyone help?

Thanks,
V

Nov 17 '05 #4
Take a look at System.IO

"Vicky S" <ra********@com cast.net> wrote in message
news:#3******** ******@TK2MSFTN GP10.phx.gbl...

Hello,
I'm new to dot net and I can't seem to find the object name that is
equivalent to Scripting.FileS ystemObject. Can anyone help?

Thanks,
V

Nov 17 '05 #5

Thanks,
I can now generate a file.. but for some reason, it's not writing to it..
what am I doing wrong?

Dim oFile As System.IO.File, oStream As System.IO.Strea mWriter

Dim filename As String

filename = Application.Exe cutablePath & "\..\importlog. txt"

oStream = oFile.CreateTex t(filename)

oStream.WriteLi ne(Now() & " " & strMessage)

"Juliano Bortolozzi" <ju************ ***@hotmail.com > wrote in message
news:ux******** ******@TK2MSFTN GP10.phx.gbl...
Take a look at System.IO

"Vicky S" <ra********@com cast.net> wrote in message
news:#3******** ******@TK2MSFTN GP10.phx.gbl...

Hello,
I'm new to dot net and I can't seem to find the object name that is
equivalent to Scripting.FileS ystemObject. Can anyone help?

Thanks,
V


Nov 17 '05 #6

Thanks,
I can now generate a file.. but for some reason, it's not writing to it..
what am I doing wrong?

Dim oFile As System.IO.File, oStream As System.IO.Strea mWriter

Dim filename As String

filename = Application.Exe cutablePath & "\..\importlog. txt"

oStream = oFile.CreateTex t(filename)

oStream.WriteLi ne(Now() & " " & strMessage)

"Juliano Bortolozzi" <ju************ ***@hotmail.com > wrote in message
news:ux******** ******@TK2MSFTN GP10.phx.gbl...
Take a look at System.IO

"Vicky S" <ra********@com cast.net> wrote in message
news:#3******** ******@TK2MSFTN GP10.phx.gbl...

Hello,
I'm new to dot net and I can't seem to find the object name that is
equivalent to Scripting.FileS ystemObject. Can anyone help?

Thanks,
V


Nov 17 '05 #7
In your example you just have to call the Close method of the stream object.

But, to do what you want, I'd consider a different approach:

Dim stream As System.IO.Strea mWriter

Try

stream = New System.IO.Strea mWriter("c:\tem p\test.txt", True)

stream.Write("t est")

Finally

If Not stream Is Nothing Then

stream.Close()

End If

End Try
Note that you can't forget to close the stream, even if an exception has
occured.

"Vicky S" <ra********@com cast.net> wrote in message
news:#T******** ******@TK2MSFTN GP12.phx.gbl...

Thanks,
I can now generate a file.. but for some reason, it's not writing to it..
what am I doing wrong?

Dim oFile As System.IO.File, oStream As System.IO.Strea mWriter

Dim filename As String

filename = Application.Exe cutablePath & "\..\importlog. txt"

oStream = oFile.CreateTex t(filename)

oStream.WriteLi ne(Now() & " " & strMessage)

"Juliano Bortolozzi" <ju************ ***@hotmail.com > wrote in message
news:ux******** ******@TK2MSFTN GP10.phx.gbl...
Take a look at System.IO

"Vicky S" <ra********@com cast.net> wrote in message
news:#3******** ******@TK2MSFTN GP10.phx.gbl...

Hello,
I'm new to dot net and I can't seem to find the object name that is
equivalent to Scripting.FileS ystemObject. Can anyone help?

Thanks,
V



Nov 17 '05 #8
In your example you just have to call the Close method of the stream object.

But, to do what you want, I'd consider a different approach:

Dim stream As System.IO.Strea mWriter

Try

stream = New System.IO.Strea mWriter("c:\tem p\test.txt", True)

stream.Write("t est")

Finally

If Not stream Is Nothing Then

stream.Close()

End If

End Try
Note that you can't forget to close the stream, even if an exception has
occured.

"Vicky S" <ra********@com cast.net> wrote in message
news:#T******** ******@TK2MSFTN GP12.phx.gbl...

Thanks,
I can now generate a file.. but for some reason, it's not writing to it..
what am I doing wrong?

Dim oFile As System.IO.File, oStream As System.IO.Strea mWriter

Dim filename As String

filename = Application.Exe cutablePath & "\..\importlog. txt"

oStream = oFile.CreateTex t(filename)

oStream.WriteLi ne(Now() & " " & strMessage)

"Juliano Bortolozzi" <ju************ ***@hotmail.com > wrote in message
news:ux******** ******@TK2MSFTN GP10.phx.gbl...
Take a look at System.IO

"Vicky S" <ra********@com cast.net> wrote in message
news:#3******** ******@TK2MSFTN GP10.phx.gbl...

Hello,
I'm new to dot net and I can't seem to find the object name that is
equivalent to Scripting.FileS ystemObject. Can anyone help?

Thanks,
V



Nov 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2587
by: Garet Cammer | last post by:
Hi Everyone, I am writing a program to perform backup operations using the VB scripting File System Object to copy to removable media storage devices. The backup operation works fine, but when we attempt to remove the backup device, we often get a "Delayed Write Failed" error message, indicating that data was cached and the copy was not...
5
10423
by: Ajay Garg | last post by:
I wanted to loop through a directory and get the names of all the files in the directory and put it in a table using the file system object and VB scrip in a DTS package... How can Ido this? Thansk in advance.
0
1057
by: | last post by:
Would I use the file system object to get the information Summary information for a file? When I right click a Word doc and go to Properties --> System Tab, there's information that I'd like to access to display on my web page. That information is set when somebody fills out the Properties information within their MS Word application. If...
0
1176
by: Stephen Costanzo | last post by:
I am using the file system object to determine the available drive space (and total drive space) of UNC path directories, however I am also trying to strong name the DLL. While I can create the key for my DLL, it cannot build the DLL because the File System Object is not strongly named "Interop.Scripting does not have a strong name". Is...
5
6936
by: mbosco51 | last post by:
Hi. I have a virtual path setup in order to give my web server access to a file on my app server. I am using the file system object to check for the existance of the file and if it exists, it has to validate the file date. The problem is I can't seem to find the file. I can successfully check for the existance of a file on the web...
3
1379
by: Lise | last post by:
I am using the File System Object to create server side cookies and part of the Function that I am writing deletes a file but I am getting a permissions denied error on that line of code. I am using Integrated security only on this site but how do I get the IUSER_Machinename account to work with Integrated Security? - Lisa
1
1255
by: Chris | last post by:
Is there any way of rollback any changes made by the file system object in the event of an error. I delete a file and copy one somewhere and the copy fails is there anyway to rollback the delete. Essentially a file system version of a transaction. Regards, Chris.
4
2907
by: vdown | last post by:
Im no ASP expert but have inherited a site that scans a load of folders for PDFs using the file system object. All the PDFs are held in a time based heriarchical folder structure i.e. Year\Month\Date (in format 150207, thats UK date). The first page lists the current month with all the days that have folders. In the format (15 February 2007)...
3
2169
by: vunet | last post by:
The friendly URLs in ASP is the goal of my project. However, in ASP there is no obvious page mapping as I researched compared to other languages. What I mean is making www.site.com?page=Home being www.site.com/home/. One of the workaround I know is to use MS XMLHTTP request on www.site.com/home/index.asp page which will get the HTML content...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8132
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6286
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3656
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3644
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
944
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.