Recent content by Eawedat

  1. Eawedat

    Windows 7 Batch File: works under cmd-Windows , NOT under MS-DOS

    I made these codes to backup files : set p=C:\Users\ for/f %%a in('dir C:\Users\ /b') do ( if not"%%a"=="Public", ( set fileDest=C:\Backup-%%a_%date:~7,2%.%date:~4,2%.%date:~10,4% If Not Exist"%fileDest%" mkdir "%fileDest%"set"fullPath=%p%%%a%" xcopy "%fullPath%"%fileDest%/e /h /y /k rem call...
Back
Top