if not errorlevel==1
That should be
if %errorlevel% NEQ 1
Días de verano,
Gracias por su ayuda.
This is the only way I know to get the date on the file.
***
set todd=(
DIR C:\NET\sus_client\wsus-*.reg)
C:\Documents and Settings\THamblin>DIR C:\NET\sus_client\wsus-*.reg
Volume in drive C has no label.
Volume Serial Number is 680C-4B0F
Directory of C:\NET\sus_client
12/04/2006 10:56 AM 2,010 wsus-cc.reg
1 File(s) 2,010 bytes
0 Dir(s) 11,905,589,248 bytes free
C:\Documents and Settings\THamblin>
***
Then I saw this in the forum and thought I could use it if I could set the date of the file as a variable.
***
for /f "tokens=1-5 delims=/ " %%d in ("%date%") do set hope= %%e/%%f/%%g
***
I could get the right line of text with this.
***
DIR C:\NET\sus_client\wsus-*.reg | FIND "/2006"
***
But I have not found a way to pull the date out of that line of text.
Any ideas you can come up with would be appreciated.
Thanks,
Todd