FSO and Cussing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All:

I have been reading and hearing you cuss over that many of you do not use
scripting and the File System Object for opening and closing forms. Since
this is the only way that I know how to code for opening and closing form in
both VB.net and VB 6, would someone please enlighten me as to how to check to
see if a file exists, open a text file and read it's contents into a database
in VB.net code? If
there is a newer better way of doing this I would appreciate learning.

Rachel
 
Hi,

http://msdn.microsoft.com/library/d...ef/html/frlrfsystemiofileclassexiststopic.asp

Ken
--------------------------------
Hi All:

I have been reading and hearing you cuss over that many of you do not use
scripting and the File System Object for opening and closing forms. Since
this is the only way that I know how to code for opening and closing form in
both VB.net and VB 6, would someone please enlighten me as to how to check
to
see if a file exists, open a text file and read it's contents into a
database
in VB.net code? If
there is a newer better way of doing this I would appreciate learning.

Rachel
 
Ken:

Thanks for your help. This method works for file and folder exists and
creating folders and files. Do you have any ideas of how I could do this?

strNameOfFile = fso.GetFileName(SaveFileDialog.FileName)


Rachel
 
Thanks for your help. This method works for file and folder exists and
creating folders and files. Do you have any ideas of how I could do this?

strNameOfFile = fso.GetFileName(SaveFileDialog.FileName)


Rachel
 
Hi,

Dim strFileName As String =
System.IO.Path.GetFileName(SaveFileDialog1.FileName)



Ken

---------------------

Ken:

Thanks for your help. This method works for file and folder exists and
creating folders and files. Do you have any ideas of how I could do this?

strNameOfFile = fso.GetFileName(SaveFileDialog.FileName)


Rachel
 
Thanks Ken I am cussing no longer!

Ken Tucker said:
Hi,

Dim strFileName As String =
System.IO.Path.GetFileName(SaveFileDialog1.FileName)



Ken

---------------------

Ken:

Thanks for your help. This method works for file and folder exists and
creating folders and files. Do you have any ideas of how I could do this?

strNameOfFile = fso.GetFileName(SaveFileDialog.FileName)


Rachel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top