Admin or not

BlitzPlus Forums/BlitzPlus Programming/Admin or not

Actually, the following code will do exactly that:

If CallDLL("shell32.dll","IsUserAnAdmin") Then 
Notify "User is Administrator"
;file operation code in here 
Else 
RuntimeError "You need to do this from an admin account!" 
EndIf 


courtesy of Electronin, posted a while back in the following thread: http://www.blitzbasic.com/Community/posts.php?topic=31698