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

View previous topic View next topic 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 : 9512
volume of testosterone : 267187
Join date : 2013-07-02
Age : 93
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 : 9512
volume of testosterone : 267187
Join date : 2013-07-02
Age : 93
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 cya on April 3rd 2015, 8:44 pm

forgive me for asking but what does it actually do

cya
Unamerican

Posts : 10540
volume of testosterone : -83277
Join date : 2014-11-26
Location : cya

View user profile http://www.legacy.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, 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 : 9512
volume of testosterone : 267187
Join date : 2013-07-02
Age : 93
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 cya on April 3rd 2015, 11:24 pm

images werent showing up for me at the time

cya
Unamerican

Posts : 10540
volume of testosterone : -83277
Join date : 2014-11-26
Location : cya

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

Back to top Go down

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 : 5773
volume of testosterone : 144092
Join date : 2014-09-01
Age : 17
Location : florida swamp

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 cya on April 4th 2015, 1:03 pm

SmokeTheHardest 420 2k14 wrote:i can seee the picture and i have no fucking idea what it does

whenever that happens, i just click quote and paste the img link into a new tab

cya
Unamerican

Posts : 10540
volume of testosterone : -83277
Join date : 2014-11-26
Location : cya

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

Back to top Go down

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 : 9512
volume of testosterone : 267187
Join date : 2013-07-02
Age : 93
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

View previous topic View next topic Back to top

- Similar topics

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