alert.exe - a command line util that windows should have had

Go down

alert.exe - a command line util that windows should have had

Post by oaky on March 1st 2015, 8:37 pm

msg kind of fulfills this but not very well - compile and place in %WINDOWS% to be able to use it in cmd without changing path variables

this is so simple but so useful if you ever need to use it for some reason like i just found myself requiring (task scheduler is for NERDS)



Code:

// so easy even amsk8r could make this
#include <stdio.h>
#include <windows.h>

#define UNICODE 1

using namespace std;

int main(int argc, char* argv[])
{
   if(argc != 3) {
       printf("Usage: [file name] "message" "title""); // add extra arguments and shit at your leisure
       return -1;
   }
   int msgbox = MessageBox(
       NULL,
       (LPCTSTR)argv[1],
       (LPCTSTR)argv[2],
       MB_ICONWARNING | MB_OK | MB_DEFBUTTON1
   );

   return msgbox;
}


Last edited by oaky on April 3rd 2015, 7:01 pm; edited 1 time in total
avatar
oaky
STILL UNSTOPPABLE

Posts : 9790
volume of testosterone : 281467
Join date : 2013-07-02
Age : 94
Location : AMERICA

View user profile http://www.otthunderdome.com

Back to top Go down

Re: alert.exe - a command line util that windows should have had

Post by oaky on April 3rd 2015, 6:55 pm

i have since forgotten why i needed this
avatar
oaky
STILL UNSTOPPABLE

Posts : 9790
volume of testosterone : 281467
Join date : 2013-07-02
Age : 94
Location : AMERICA

View user profile http://www.otthunderdome.com

Back to top Go down

The author of this message was banned from the forum - See the message

Re: alert.exe - a command line util that windows should have had

Post by oaky on April 3rd 2015, 9:20 pm

roomo wrote:forgive me for asking but what does it actually do
are you blind or do images not show up for you
avatar
oaky
STILL UNSTOPPABLE

Posts : 9790
volume of testosterone : 281467
Join date : 2013-07-02
Age : 94
Location : AMERICA

View user profile http://www.otthunderdome.com

Back to top Go down

The author of this message was banned from the forum - See the message

Re: alert.exe - a command line util that windows should have had

Post by He. on April 4th 2015, 6:34 am

i can seee the picture and i have no fucking idea what it does
avatar
He.
Grand Mac Daddy Big Mac

Posts : 6046
volume of testosterone : 150391
Join date : 2014-09-01
Age : 18
Location : florida swamp

View user profile http://www.otthunderdome.com/

Back to top Go down

The author of this message was banned from the forum - See the message

Re: alert.exe - a command line util that windows should have had

Post by oaky on April 12th 2015, 7:22 pm

SmokeTheHardest 420 2k15 wrote:i can seee the picture and i have no loving idea what it does
it lets you display a message prompt for whatever reason you might want to do that
avatar
oaky
STILL UNSTOPPABLE

Posts : 9790
volume of testosterone : 281467
Join date : 2013-07-02
Age : 94
Location : AMERICA

View user profile http://www.otthunderdome.com

Back to top Go down

Re: alert.exe - a command line util that windows should have had

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum