The command line syntax goes as follows:
Wintail.exe [filename1] [filename2] ... [filenameN]Example:
Wintail.exe \\servername\folderX\file1.log \\servername\folderY\file2.log
If your log files are located on a server on the network, Windows might not be able to make a connection to the server without authentication, and so Hoo Wintail won't be either. You could manually connect to the server by typing \\servername in explorer and filling in the username and password for authentication. Or you could automatically authenticate at the server by using following statement:
net use "\\servername" /USER:username "password"
As we usually monitor the same log files or we easily want to open different sets of files, we create a .bat file containing above 2 statements. This way we don't have to type the commands each time. Your .bat file could look like this:
net use "\\servername" /USER:username "password"Note that there's a space between the first file and the second file, there's no hard enter.
Wintail.exe \\servername\folderX\folderY\file1.log \\servername\folderX\folderY\file2.log
Before running the bat file you should make sure Wintail.exe is known to Windows by adding its location to your path variable. You can do this the following way:
- right click "my computer"
- select tab "advanced"
- click button "environment variables"
- select system variable "path"
- click the edit button and add the Wintail.exe location (which is usually C:\Program Files\HooTech\WinTail by default)
Right now the setup is complete. Create additional .bat files and launch any set of log files at a click.