Actually, the following code will do exactly that:
courtesy of Electronin, posted a while back in the following thread: http://www.blitzbasic.com/Community/posts.php?topic=31698
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