|
Answer» Background information: I am writing a batch program, which can search the employee.txt file and through the result based on the user input. EXAMPLE, One user may enter Department as a key WORD and see all the EMPLOYEES in the department. In another case he may enter name as the keyword to find the department. I have used the "findstr" command for the case above. Also I have CREATED a shortcut and changed the Target variable name.
When the user click the shot cut icon, he will get a dos screen and he will type emp HR to see all HR employee. (FYI - Bath file name is emp.bat)
Help required: Here I do not want the user to enter the batch file name and the keyword. The user should simply click the icon and enter the key word directly and the batch files should do the rest.
Thanks in advance
Rangsha Use command line options or a menu:
emp.bat HRThanks, But my point here is, I do not want the user to see the batch file name.try MAKING a shortcut to it?
|