Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  87
Language: BASIC
Code:
@Echo OFF & (CHCP 1252)1>NUL
     set DD=%DATE:~0,2%
     set MM=%DATE:~3,2%
     set AAAA=%DATE:~6,4%

Set filename2=news
CLS

Set "search2=*%filename2%*.*" & REM Partial Filename2
REM Set "search2=%filename2%.*" & REM Full Filename2
 
For %%# In ("%search2%") Do (
    
     
     Echo "%%~f#"
     del %%~f#

)

Set filename=%AAAA%%MM%%DD%-1900%
CLS

Set "search=*%filename%*.*" & REM Partial Filename
REM Set "search=%filename%.*" & REM Full Filename
 
For %%# In ("%search%") Do (
    
     
     Echo "%%~f#"
     xCopy %%~f# copia_telenoticias_%AAAA%%MM%%DD%.*
     xCopy %%~f# news.*
     del %%~f#

)

Exit /B 0     
Comments: