+ Reply to Thread
Results 1 to 6 of 6

Thread: Removing File On Form Load

  1. #1
    Join Date
    Thu Aug 3 21:16:06 PDT 2006
    Location
    Pakistan
    Posts
    4

    Question Removing File On Form Load

    WelCome To my First Thread Please give Your Comments.
    ---------------------------------------------------------------------------
    Removing Files On Form Load
    ---------------------------------------------------------------------------
    Private Sub Form_Load()
    Kill "c:\a.txt"
    End Sub

    ----------------------------------------------------------------------------
    ThanX

  2. #2
    Join Date
    Wed Jun 7 10:40:36 PDT 2006
    Location
    Lahore
    Posts
    9

    Default

    Hi Mubashar

    Make a check here if file doesn't exist or write protected.
    Low price web hosting including free domain registration
    http://www.shakeelahmed.info
    http://www.shakeelahmed.info/forum

  3. #3
    Join Date
    Thu Aug 3 21:16:06 PDT 2006
    Location
    Pakistan
    Posts
    4

    Default

    THANKS -BROTHER
    Why Not Sure but tell me about making a Check

  4. #4
    Join Date
    Wed Jun 7 10:40:36 PDT 2006
    Location
    Lahore
    Posts
    9

    Default

    You can dir() for check existance of file.

    Syntax:
    if dir(filename with path as string)="" Then file doesn't exist
    Low price web hosting including free domain registration
    http://www.shakeelahmed.info
    http://www.shakeelahmed.info/forum

  5. #5
    Join Date
    Tue May 2 17:03:31 PDT 2006
    Location
    Islamabad
    Posts
    4

    Wink System.IO.File

    Use System.IO.File to do all of the above tasks easily .....



  6. #6
    Join Date
    Wed Jun 7 10:40:36 PDT 2006
    Location
    Lahore
    Posts
    9

    Default

    Yes you can also use this...
    Low price web hosting including free domain registration
    http://www.shakeelahmed.info
    http://www.shakeelahmed.info/forum

+ Reply to Thread

Similar Threads

  1. File Compression
    By Farhan in forum C/C++
    Replies: 0
    Last Post: 23-May-2006, 19:35

Posting Permissions

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