DOS Batch program questions

Microsoft Windows xp home edition sp2b
November 29, 2009 at 14:22:48
Specs: Windows XP
I have most of my batch file down..but I want to add a few more things and I have a few questions.

Is it possible when cmd makes a text file to email it to me without the user doing anything?

Also, I want to make an authentication method, so when windows starts so does my batch file asking for a un and pw. I want to make it so if the correct username and password isnt typed windows is shut down.


any help?


See More: DOS Batch program questions

Report •


#1
November 29, 2009 at 15:36:35
anyone..?

Report •

#2
November 29, 2009 at 15:53:38
"Is it possible when cmd makes a text file to email it to me without the user doing anything?"

No. You not only need to 'do something' you need a command line mailer. Not part of Windows.

As to UN/PW, I don't think there's a software shutdown; maybe in the 'resource kit'.

Once you get one you can:
=========================
@echo off & setLocal EnableDELAYedExpansion

set /p UN=user:
set /p PW=pass:

if !UN! equ username (
if !PW! equ password (
goto :eof
))

shutdown


=====================================
Helping others achieve escape felicity

M2


Report •

#3
November 29, 2009 at 15:56:39
alright thanks..another question

if !UN! equ username (

for username do I put the UN that must be entered or the computer will shut down?


Report •

Related Solutions

#4
November 29, 2009 at 16:05:11
"for username do I put the UN that must be entered or the computer will shut down?"

Yep that's the idea. I thought that's what you wanted.


=====================================
Helping others achieve escape felicity

M2


Report •


Ask Question