Results 1 to 5 of 5

Thread: deleting files Please help

  1. #1

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    Is there a way through code to delete a file? and if it deletes it will it send it to the rBin or will it just totaly disappeer. If it goes to the rBin is there a way to delete it from the rBin? Thanks

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    use Kill strFileName where strFileName is the full path and filename of the file you want to delete

  3. #3

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    hey that isn't working agh why? i put this

    Kill "C:\WINDOWS\Profiles\Chris\Desktop\Visual Basic\Programs\Vocab Builder\Vocab Lists\Bryan.ini"

    and it didn't work why? thanks!!

    oh and umm that is the correct path. it said compile error:
    Wrong number of arguments or invalid property assignment

    ------------------
    Sincerely,
    Chris
    :-) ;-)
    just have fun out there and live life to the fullest while it is still here
    Email [email protected]



    [This message has been edited by PITBULLCJR (edited 02-04-2000).]

  4. #4

    Thread Starter
    Hyperactive Member PITBULLCJR's Avatar
    Join Date
    Nov 1999
    Location
    New York
    Posts
    408

    Post

    netsurfer you out there please help or anyone else I would aprecitate it!! thanks!!

    ------------------
    Sincerely,
    Chris
    :-) ;-)
    just have fun out there and live life to the fullest while it is still here
    Email [email protected]


  5. #5
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    netSurfer gave you the correct syntax, try it on a file in the root of the C Drive, just to test it, there's no reason why it shouldn't work, ie.

    Kill "C:\TheFile.txt"

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


Posting Permissions

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



Click Here to Expand Forum to Full Width