file object?

Results 1 to 2 of 2

Thread: file object?

  1. #1
    Join Date
    Dec 1969

    Default file object?

    How can I tell if there is a file (I don't know filename) in a particular directory, and if there is delete it?

  2. #2
    Join Date
    Dec 1969

    Default RE: file object?

    Making sure to import<BR>System.IO and<BR>System.IO.FileSystemInfo<BR><BR>Public Sub DeleteFile( i_fullFilePath )<BR> Dim objFileInfo As FileInfo<BR> objFileInfo = New FileInfo(i_fullFilePath)<BR> objFileInfo.Delete()<BR>End Sub<BR><BR>making sure that "i_fullFilePath" is a full asbsolute location (build it up before calling the sub):<BR>ex/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts