Another option is utilising Powershell to retrieve the property for you:
Code:
local pipe = io.popen('powershell -command \"[Environment]::GetFolderPath(\'Desktop\')\"')
if pipe == nil then error('Something went wrong, invalid command or nil result.') end
local p = pipe:read('*all')
pipe:close()
print(p)
local pipe = io.popen('powershell -command \"[Environment]::GetFolderPath(\'Desktop\')\"')
if pipe == nil then error('Something went wrong, invalid command or nil result.') end
local p = pipe:read('*all')
pipe:close()
print(p)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum