Recent content by zelarra821


  1. Solved Check if there are files in a folder in a BAT file

    Ok, thanks, guys. I've already solved what I looking for.
  2. Solved Check if there are files in a folder in a BAT file

    Could I get number of files from a folder and its subfolder with robocoy????
  3. Solved Check if there are files in a folder in a BAT file

    I'm using Spanish version of windows Folder I want to check it there are files D:\Bandeja de entrada\Móvil I want to exclude, .sh and .txt, and files named Cuadre de cuentas.xlsm
  4. Solved Check if there are files in a folder in a BAT file

    File not found in all cases
  5. Solved Check if there are files in a folder in a BAT file

    for /f %%n in ('dir /b /a-d !FOLDER! ^| findstr /v /i "Delete.sh Budget\ 2024.xlsm !IGNORE_EXT!" ^| find /c /v ""') do ( for /f %%n in ('dir /b /a-d ^| findstr /v /i "Delete.sh Budget\ 2024.xlsm \.sh$ \.bat$" ^| find /c /v ""') do ( The string "Delete.sh Budget\ 2024.xlsm \.sh$ \.bat$" is...
  6. Solved Check if there are files in a folder in a BAT file

    Hello, I'm getting tired of insisting so much, but would you be so kind as to put the full line? I'm not able to correct what you've put me with, because I've tried to put it the way I understood it, but it hasn't fixed anything, and of course, I don't know if it's because of me, or why it is...
  7. Solved Check if there are files in a folder in a BAT file

    I reedit my last post: @echo off setlocal enabledelayedexpansion set "FOLDER=D:\Bandeja de entrada\000 M¢vil" set "IGNORE_EXT=\.sh$ \.txt$" echo Running dir. echo. dir !FOLDER! for /f %%n in ('dir /b /a-d !FOLDER! | findstr /v /i "Delete.sh Budget\ 2024.xlsm !IGNORE_EXT!" ^| find /c /v...
  8. Solved Check if there are files in a folder in a BAT file

    OPTION 1 @echo off setlocal enabledelayedexpansion set "FOLDER=D:\Bandeja de entrada\000 M¢vil" set "IGNORE_EXT=\.sh$ \.txt$" echo Running dir. echo. dir !FOLDER! for /f %%n in ('dir /b /a-d !FOLDER! | findstr /v /i "Delete.sh Budget\ 2024.xlsm !IGNORE_EXT!" ^| find /c /v ""') do (...
  9. Solved Check if there are files in a folder in a BAT file

    I'm so sorry 😓😓 I don't get it works. I execute bat files but it closes and I can't see anything in cmd screen. There must be something wrong in my code: @echo off setlocal enabledelayedexpansion set "FOLDER="%D:\Bandeja de entrada\000 M¢vil\"" set "IGNORE_EXT=\.sh$ \.txt$" echo Running...
  10. Solved Check if there are files in a folder in a BAT file

    You don't understand what I mean. The files are this: one
  11. Solved Check if there are files in a folder in a BAT file

    The two files are: Delete.sh Budget 2024.xlsm
  12. Solved Check if there are files in a folder in a BAT file

    I get an error: "/v" is not recognized as an internal or external command, program, or executable batch file.
  13. Solved Check if there are files in a folder in a BAT file

    and how should it be if you want exclude specific files? For example, Delete.sh and 'Budget 2024.xlsx' Thanks
  14. Solved Check if there are files in a folder in a BAT file

    @echo off setlocal enabledelayedexpansion set "FOLDER=%1" set "IGNORE_EXT=.sh" echo Running dir. echo. dir !FOLDER! for /f %%n in ('dir /b /a:-d !FOLDER! 2^>NUL ^| findstr /v /i "\!IGNORE_EXT!$" ^| find /c /v ""') do ( set COUNT=%%n if !COUNT! equ 0 ( echo. echo No...
  15. Solved Check if there are files in a folder in a BAT file

    The last two questions: If I want to exclude .sh and .txt, how should it be? If I want to exclude two specific files, like test.docx and test.xlsx, how should it be? Thanks.
Back
Top Bottom