View Single Post
Old 04-09-2009, 09:15 AM   #1 (permalink)
benny237
 
Newb Techie

Join Date: Feb 2009

Posts: 20

benny237 is on a distinguished road

Default help with .bat command

OK, so I am one step away from completing a .bat file. . .

when a user clicks on a link, a .bat file is ran . . . this file extrapolates the name of the user's computer and creates an email message automatically addressed to our company's IT department along with the name of the computer. . .

does anyone know the command to automatically send the message? as it is now, everything is populated correctly, however the user still has to click "send". . .

PLEASE help me out, I have been searching the net for days now with now luck . . .

again in summation, what is the command prompt command to send the email?

- code of script -

@ECHO OFF
START mailto:helpdesk1@oncologyallies.com?subject=%compu tername%^&body=%computername%



also, does anyone know a way I could include the ip address in the body of the email? right now our techs can see the computer name in the subject. . . but it would be nice if the ip was included in case the DNS is messed up. . . something like %ip% ???

this is for windows xp btw. . .

thanks everyone for your help!! this has been realllllllllllly tough . . .

Last edited by benny237; 04-09-2009 at 09:39 AM.
benny237 is offline