T
Tim
Hi,
I have a W2K machine where there are logfiles
C:\Log\01\ComLog08.txt
(where 01 is the day of month, & 08 is the hour)
generated.
Thus, name of the logfile is changed every hour and file
is also stored in different directory ie, 02,03, etc every
day.
I need to know a command string at the DOS prompt
resulting in the output below
C:\Log\01\ComLog00.txt
..
C:\Log\01\ComLog08.txt
C:\Log\01\ComLog09.txt
..
..
C:\Log\02\ComLog00.txt
C:\Log\03\ComLog00.txt
..
..
I have tried using wildcards in the middle of the command,
example
c:>dir c:\Log\*\ComLog??.txt
but gives
"The filename, directory name, or volume label syntax is
incorrect". Furthermore if it works, the date and time..
unnecessary information is displayed.
Sorry, I am not much of a Windows batch file person so any
help is greatly appreciated. Any ideas ?
I have a W2K machine where there are logfiles
C:\Log\01\ComLog08.txt
(where 01 is the day of month, & 08 is the hour)
generated.
Thus, name of the logfile is changed every hour and file
is also stored in different directory ie, 02,03, etc every
day.
I need to know a command string at the DOS prompt
resulting in the output below
C:\Log\01\ComLog00.txt
..
C:\Log\01\ComLog08.txt
C:\Log\01\ComLog09.txt
..
..
C:\Log\02\ComLog00.txt
C:\Log\03\ComLog00.txt
..
..
I have tried using wildcards in the middle of the command,
example
c:>dir c:\Log\*\ComLog??.txt
but gives
"The filename, directory name, or volume label syntax is
incorrect". Furthermore if it works, the date and time..
unnecessary information is displayed.
Sorry, I am not much of a Windows batch file person so any
help is greatly appreciated. Any ideas ?