Home > Community > Forums > PCB SKILL > problem on deleteFile

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 problem on deleteFile 

Last post Mon, Dec 17 2012 6:00 PM by D912349. 2 replies.
Started by D912349 17 Dec 2012 12:26 AM. Topic has 2 replies and 759 views
Page 1 of 1 (3 items)
Sort Posts:
  • Mon, Dec 17 2012 12:26 AM

    • D912349
    • Top 150 Contributor
    • Joined on Fri, Nov 23 2012
    • Posts 47
    • Points 800
    problem on deleteFile Reply

    Hi everyone,

     I encountered a problem whenever i use the deleteFile function, the code goes like this.

    file = file and directory that should be deleted..(example: "C:/text.text")

    deleteFile(file)

    every time i run the program, an error is displayed.. error is:

    E- *Error* deleteFile: permission denied -  "C:/text.text"

    any help will be much appreciated

    thanks in advance

    • Post Points: 20
  • Mon, Dec 17 2012 2:20 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: problem on deleteFile Reply

    Hi

    Whenever I've run into this problem it has been due to the file not being closed or being open by another programs.

    So check if you've closed the file or maybe your skill code opens the file in a viewer or external program?

     

    Best regards

    Ole

    Best regards Ole
    • Post Points: 20
  • Mon, Dec 17 2012 6:00 PM

    • D912349
    • Top 150 Contributor
    • Joined on Fri, Nov 23 2012
    • Posts 47
    • Points 800
    Re: problem on deleteFile Reply

    Thanks,

    I will check my code first..

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by D912349 at 17 Dec 2012 12:26 AM. Topic has 2 replies.