mirror of
https://tildegit.org/Sunblade/hx_drives.git
synced 2026-09-23 07:57:11 +00:00
Upload files to "/"
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
--[[
|
||||||
|
hx_drives.lua
|
||||||
|
By Sunblade
|
||||||
|
[email protected]
|
||||||
|
|
||||||
|
For Hexchat 2.16+ (Windows build)
|
||||||
|
|
||||||
|
License: MIT
|
||||||
|
|
||||||
|
Usage: /drives
|
||||||
|
|
||||||
|
]]
|
||||||
|
|
||||||
|
hexchat.register("hx_drives.lua","0.0.1","Display the list of storage drives - Usage: /drives")
|
||||||
|
|
||||||
|
function drives()
|
||||||
|
i = io.popen("wmic logicaldisk get name,freespace,volumename,filesystem")
|
||||||
|
o = i:read("*a")
|
||||||
|
i:close()
|
||||||
|
hexchat.print(o)
|
||||||
|
return hexchat.EAT_ALL
|
||||||
|
end
|
||||||
|
|
||||||
|
hexchat.hook_command("drives", drives)
|
||||||
Reference in New Issue
Block a user