Best title of which I could think. Here's the issue. I have one batch file that I use to give me a directory of user log files. I pass the beginnings of a user name to the file. DIR lists all the files in the specified directory that match; the batch file then terminates. I have a similar batch file to call machine log files. I pass a computer name to that batch file, it opens the corresponding text file in Notepad...and it sits there waiting for me to close the text file before it terminates. Doesn't seem to me that such should be the proper behavior. Here's the wonky batch file:
@echo off o: cd \[location] %1.txt exit /b
Is there some way to get this batch to terminate after it opens the text file; or why does it wait for the text file to close before it ends?