1 Reply Latest reply on Jul 22, 2009 2:08 AM by Peter Kahrel

    Delete folder in JS

    Techi Panda Level 2

      Hi scriters

       

      I want to remove one folder in my script, first i tested myfolder is presents, i am correct i am getting alert myfolder is exists then i want to delete the folder, i used remove() funtion, but i am failed to remove the folder.

       

      myFolder = Folder("D:\\package\\ch1\\Fonts");
      if(myFolder.exists)
      {
      alert("Your folder exists")     // i am getting alert tat my folder exists
      myFolder.remove();                // not working
      Folder(myFolder).remove(); // not working
      }

       

      is what i done is corret method, or any other commets for deleting the folder.

       

      thanks in advance

       

      regards

      a r u l