views:

31

answers:

1

I would like to make a simple batch application that does two things.

  1. Asks the user to input a name, example "vega"
  2. Runs "finger [email protected]" and displays the output of that command.

The following does the first thing, but I am not able to output the result from the finger.

 @ECHO OFF

 :begin

 echo Enter the name of the user you are looking for:
 set INPUT=
 set /P INPUT=Name: %=%
 finger -l %INPUT%@mail.example.com

 pause
 GOTO begin
A: 
trismarck