Author Topic: Script engine error  (Read 15877 times)

Tezcatlipoca

  • Newbie
  • *
  • Posts: 6
    • View Profile
Script engine error
« on: November 12, 2015, 02:05:07 »
Script engine error => No matching function with name "AddFileAttribute" found.

Not found:
  • AddFileAttribute()
  • SetFileAttribute()
  • GetFileAttribute()
  • PathGetPathPart()
  • PathGetNamePart()
  • and etc.

need import the desired function?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4407
    • View Profile
    • Multi Commander
Re: Script engine error
« Reply #1 on: November 12, 2015, 07:42:10 »
It works


Code: [Select]
@var $part = PathGetPathPart("C:\\Temp\\MyFile.txt");
MessageBox("Msg", $part, 0);

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4407
    • View Profile
    • Multi Commander
Re: Script engine error
« Reply #2 on: November 12, 2015, 07:53:14 »
Ahh on the attributes functions you are missing a 's'  Attributes..  So  AddFileAttributes/SetFileAttributes and so on
But PathGetPathPart,PathGetNamePart is correct so they should work