You could do this using the windows api.
load dll
call dll
ret=call dll()
delete dll
will be your friends. I'm on my phone rn so writing code is kinda hard. I can provide examples once I'm back home.
EDIT 1:
still on it. got a handle to drive c using the windows api:
rem kernel32.dll is part of the windows api and contains all of the functions we will be using
load dll "kernel32.dll",1
rem CreateFileA is the function that we will use to get the handle to the drive C:
rem imo the function name is kind of missleading
rem the "\\.\C:" part is the drive we will be accessing.
GENERIC_READ=0x80000000
GENERIC_WRITE=0x40000000
FILE_SHARE_READ=0x1
FILE_SHARE_WRITE=0x2
OPEN_EXISTING=3
SmartOpen=call dll(1,"CreateFileA","\\.\C:",GENERIC_READ or GENERIC_WRITE,FILE_SHARE_READ Or FILE_SHARE_WRITE,0,OPEN_EXISTING,0,0)
rem if there is an error then close the programm.
if SmartOpen=-1
delete dll 1
print "error: no access to drive C: . please run as administrator."
wait key
end
endif
rem ALWAYS CLOSE THE HANDLE !!!!!!111eleven
closed=call dll(1,"CloseHandle",SmartOpen)
rem we can remove the dll now. we will not accessing it anymore
delete dll 1
rem did we get a handle? SmartOpen should be non zero
print SmartOpen
rem did we close it? closed should be 1
print closed
wait key
end
"It is only slightly easier than changing all sugar in a cake into stevia after it has already been baked" -Bisqwit