|Thank you all, |
a piece from my batch:
@echo onclick=msgbox ("Please Run as Administrator!",16,"ERROR!") >admin.vbs
for /f "delims=" %%a in ('2^>^&1 ^>nul defrag -a %Systemdrive%') do set notadmin=%%a
if defined notadmin (
I use that code when a person running vista opens it it will error stating please run as administrator, making them right click and run as administrator, now when doing that it seems to take along time.
the codes your post above is not what im really looking. BUT they are nice to have if i need them, so i must say thank you for your hard work. !
but i need something that will if open make the batch close and say please run as administrator makeing them Right Click and selct Run as Administrator.
use my code make a batch and you will see .
in XP the code is somewhat useless and only geared toward vista.
Thank you again all! :)