Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

How i make window batch file in Microsoft 7.

Feb 10, 2015 4:30PM PST

Respected Sir,
Suggest me how i can make input file for window batch file and to run window batch file and to get output.
with regards
vikas

Discussion is locked

- Collapse -
Re: make windows batch file
Feb 10, 2015 4:36PM PST

Not different from what it was long ago already:
1. To make it use your favorite text processing tool (Notepad is free).
2. To run it double click on it in Windows Explorer or click a shortcut that points to it or type the name of the batchfile in the command processor (note that the folder it resides in should be included in the path)
3. Output is shown in a command window. There is nothing special you have to do to get it.

Kees

- Collapse -
and remember
Feb 11, 2015 3:30AM PST

to put the "bat" file ending on that text file. For instance;

@echo.
@echo.
@echo.
@echo.
@echo hello world
@echo.
@echo.
@echo.
@echo.
@pause
exit

place in a text file and save as hello.bat file, then run.