Vitajte na [www.pocitac.win] Pripojiť k domovskej stránke Obľúbené stránky
Otvorte textový editor
Funkcia
vložte nasledujúci VBS fungovať do editora : .
< P > Funkčné CompareAttributes ( súbor1 , súbor2 )
dim res
ak file1.attributes = file2.attributes potom
res = true
iného
res = false
end if
Porovnajte = res
end Function
Príklad
vložte nasledujúci otestovať funkcie :
dim FSO , f1 , f2
nastaviť FSO = CreateObject ( " Scripting.FileSystemObject " )
nastaviť f1 = fso . getFile ( " filename " )
nastaviť f2 = fso.getFile ( " anotherFilename " )
CompareAttributes ( f1 , f2 )