Results 1 to 5 of 5

Thread: Runtime 70: permission denied! [RESOLVED]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Location
    England
    Posts
    242

    Runtime 70: permission denied! [RESOLVED]

    I make a few skins for MSN Messenger, but i thought i would try make a little program to install them without having to do it all manually. But when i get to the stage where it deletes the current msnmsgr.exe and copying the new one to its place. its says permission denied.
    but the funny thing is, i can delete and copy things out of this program, but i cant do the exact thing via code? any help?
    here is the code im using:
    VB Code:
    1. Kill ("" & msnpath & "\msnmsgr.exe")
    2. FileCopy "" & txtpath.Text & "", "" & msnpath & "\msnmsgr.exe"
    Last edited by lpeek; Jan 4th, 2004 at 05:29 AM.
    Lpeek

  2. #2
    Addicted Member imbue's Avatar
    Join Date
    Aug 2002
    Location
    Midwest USA
    Posts
    155
    Is it possible that the exe is running while you're trying to delete it?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Location
    England
    Posts
    242
    ah, may have something to do with it. (forgot to close it form the systray)
    Lpeek

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    One of us is probably confused. It looks to me that what you are trying to do is to
    1) Delete msnmsgr.exe, and then
    2) Copy a file (the name is in the textbox) and name it msnmsgr.exe

    If that's the case then after deleting the file you don't want to FileCopy, you just want to use the Name command (eg Name xxx.exe As yyy.exe).

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Location
    England
    Posts
    242
    well its working now anyway. im using the filecopy because i want to keep the original copy in its directory aswell as moving it to the msn directory and renameing it.
    thanks anyway
    Lpeek

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