do
local strDomain = "ftp.xxxxxx.org.uk"
local strUserlist = c_GetUserList(strDomain)
local userlist = Split(strUserlist,"\n")
local strResult = ""
for _,username in pairs(userlist) do
local user = c_GetUser(strDomain,username)
strResult = strResult..strDomain.."\t"..username.."\t"..user.last_logintime.."\t"..user.expiretime.."\n"
end
local fp = assert(io.open("c:/support/users.txt", "wb"))
fp:write(strResult)
fp:close()
end
for _,username in pairs(userlist) do
local user = c_GetUser(strDomain,username)
if user ~= nil then
strResult = strResult..strDomain.."\t"..username.."\t"..user.last_logintime.."\t"..user.expiretime.."\n"
end
end