From 526df42f34ce3b1902d89035b3f8b8e6d5d21451 Mon Sep 17 00:00:00 2001 From: Fleischkuechle Date: Sun, 19 May 2024 02:26:03 +0200 Subject: [PATCH] some changes --- ...es_in_the_Terminal_with_exclude_folder.bat | 19 - ..._Terminal_with_exclude_folders - Kopie.txt | 466 ------------------ ...s_in_the_Terminal_with_exclude_folders.bat | 465 ----------------- ...s_in_the_Terminal_with_exclude_folders.bat | 20 - ...A_List_of_all_py_files_in_the_Terminal.bat | 25 - .../Iam_inside_the_exclude_folder/test.py | 0 print_test/Iam_The_Exclude_folder/test.py | 0 print_test/iam_another_folder/test.py | 0 ...es_in_the_Terminal_with_exclude_folder.bat | 0 ..._the_Terminal_with_exclude_folder copy.bat | 0 ...he_Terminal_with_exclude_folder copy 2.bat | 0 ...he_Terminal_with_exclude_folder copy 3.bat | 0 ...A_List_of_all_py_files_in_the_Terminal.bat | 0 13 files changed, 995 deletions(-) delete mode 100644 print_test/10_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder.bat delete mode 100644 print_test/8_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders - Kopie.txt delete mode 100644 print_test/8_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders.bat delete mode 100644 print_test/9_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders.bat delete mode 100644 print_test/Iam_The_Exclude_folder/7_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal.bat delete mode 100644 print_test/Iam_The_Exclude_folder/Iam_inside_the_exclude_folder/test.py delete mode 100644 print_test/Iam_The_Exclude_folder/test.py delete mode 100644 print_test/iam_another_folder/test.py rename 10_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder.bat => testing/10_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder.bat (100%) rename 11_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy.bat => testing/11_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy.bat (100%) rename 12_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 2.bat => testing/12_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 2.bat (100%) rename 13_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 3.bat => testing/13_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 3.bat (100%) rename 7_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal.bat => testing/7_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal.bat (100%) diff --git a/print_test/10_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder.bat b/print_test/10_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder.bat deleted file mode 100644 index 54f5fee..0000000 --- a/print_test/10_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder.bat +++ /dev/null @@ -1,19 +0,0 @@ -@echo off -setlocal enabledelayedexpansion - -set "source_folder=%cd%" -set "exclude_subfolder=dev_env" - -for /r "%source_folder%" %%F in (*.py) do ( - set "file_path=%%~fF" - set "subfolder=%%~dpF" - echo !subfolder! | findstr /C:"%exclude_subfolder%" >nul || ( - echo !file_path! - ) -) - -endlocal -pause - - -@REM echo !subfolder! | findstr /C:"%source_folder%\%exclude_subfolder%\" >nul || ( diff --git a/print_test/8_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders - Kopie.txt b/print_test/8_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders - Kopie.txt deleted file mode 100644 index 58e487d..0000000 --- a/print_test/8_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders - Kopie.txt +++ /dev/null @@ -1,466 +0,0 @@ - -@echo off -setlocal -set "source_folder=%cd%" -set "exclude_subfolder=Iam_The_Exclude_folder" - -for %%F in ("%source_folder%\*.py") do ( - set "file_path=%%~fF" - set "subfolder=%%~dpF" - - echo Subfolder: !subfolder! - echo File path: !file_path! - if /I not "!subfolder!"=="%source_folder%\%exclude_subfolder%\" ( - echo Subfolder: !subfolder! - echo File path: !file_path! - echo !file_path! - ) -) - -endlocal - - -@REM @echo off -@REM setlocal - -@REM set "source_folder=%cd%" -@REM set "exclude_subfolder=Iam_The_Exclude_folder" - -@REM for %%F in ("%source_folder%\*.py") do ( -@REM set "file_path=%%~fF" -@REM set "subfolder=%%~dpF" -@REM if /I not "!subfolder!"=="%source_folder%\%exclude_subfolder%" ( -@REM echo !file_path! -@REM ) -@REM ) - -@REM endlocal - - - - - - - - - - - - - - - - - - - - - - - - - - - -@echo off -REM This script lists all .py files in a directory and its subfolders, excluding a specific folder. - -setlocal enabledelayedexpansion - -REM Set the search directory (current directory in this case) -set "search_dir=%cd%" -set "exclude_folder=Iam_The_Exclude_folder" - -REM Loop through all .py files recursively -for /r "%search_dir%" %%a in (*.py) do ( - set "filepath=%%~fa" - set "folderpath=%%~dpa" - - REM Check if the folder path contains the excluded folder - set "exclude_file=0" - for /f %%b in ('dir /ad /b "%search_dir%\%exclude_folder%"') do ( - if "!folderpath:%search_dir%\=!"=="\%%b\" ( - set "exclude_file=1" - goto :skip_file - ) - ) - - REM Print the file path if it's not in the excluded folder - :skip_file - if !exclude_file! == 0 ( - echo !filepath! - ) -) - -pause - - - - - - - - - - - - - - - - - - - - - - - - - -@REM @echo off -@REM REM This script lists all .py files in a directory and its subfolders, excluding a specific folder. - -@REM setlocal enabledelayedexpansion -@REM REM this is getting the path where the bat file is. -@REM cd /D "%~dp0" -@REM REM Set the search directory (current directory in this case) -@REM set search_dir=%cd% -@REM set exclude_folder=Iam_The_Exclude_folder -@REM @REM #set input=%cd%\input -@REM REM Loop through all .py files recursively -@REM for /r "%search_dir%" %%a in (*.py) do ( -@REM set "filepath=%%~fa" -@REM set "folderpath=%%~dpa" - -@REM REM Check if the folder path contains the excluded folder -@REM set "exclude_file=0" -@REM for /f %%b in ('dir /ad /b "%search_dir%\%exclude_folder%"') do ( -@REM if "!folderpath:%search_dir%\=!"=="\%%b\" ( -@REM set "exclude_file=1" -@REM goto :skip_file -@REM ) -@REM ) - -@REM REM Print the file path if it's not in the excluded folder -@REM :skip_file -@REM if !exclude_file! == 0 ( -@REM echo !filepath! -@REM ) -@REM ) - -@REM pause - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@REM @REM @echo off -@REM @REM REM This script lists all .py files in a directory and its subfolders, excluding a specific folder. - -@REM @REM setlocal enabledelayedexpansion - -@REM @REM REM Set the search directory (current directory in this case) -@REM @REM set "search_dir=%cd%" -@REM @REM set "exclude_folder=Iam_The_Exclude_folder" - -@REM @REM REM Loop through all .py files recursively -@REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM set "filepath=%%~fa" -@REM @REM set "folderpath=%%~dpa" - -@REM @REM REM Check if the folder path contains the excluded folder -@REM @REM set "exclude_file=0" -@REM @REM for /f %%b in ('dir /ad /b "%search_dir%\%exclude_folder%"') do ( -@REM @REM if "!folderpath:%search_dir%\=!"=="\%%b\" ( -@REM @REM set "exclude_file=1" -@REM @REM goto :skip_file -@REM @REM ) -@REM @REM ) - -@REM @REM REM Print the file path if it's not in the excluded folder -@REM @REM :skip_file -@REM @REM if !exclude_file! == 0 ( -@REM @REM echo !filepath! -@REM @REM ) -@REM @REM ) - -@REM @REM pause - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@REM @REM @echo off -@REM @REM REM This script lists all .py files in a directory and its subfolders, excluding a specific folder. - -@REM @REM setlocal enabledelayedexpansion - -@REM @REM REM Set the search directory (current directory in this case) -@REM @REM set "search_dir=%cd%" -@REM @REM set "exclude_folder=Iam_The_Exclude_folder" - -@REM @REM REM Loop through all .py files recursively -@REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM set "filepath=%%~fa" -@REM @REM set "folderpath=%%~dpa" - -@REM @REM REM Check if the folder path contains the excluded folder -@REM @REM set "exclude_file=0" -@REM @REM for /f %%b in ('dir /ad /b "%search_dir%\%exclude_folder%"') do ( -@REM @REM if "!folderpath:%search_dir%\=!"=="\%%b\" set "exclude_file=1" -@REM @REM ) - -@REM @REM REM Print the file path if it's not in the excluded folder -@REM @REM if !exclude_file! == 0 ( -@REM @REM echo !filepath! -@REM @REM ) -@REM @REM ) - -@REM @REM pause - - - - - - - - - - - - - - - - - - - - - - - - - - -@REM @REM @REM @echo off -@REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM REM this is getting the path where the bat file is. -@REM @REM @REM cd /D "%~dp0" - - - -@REM @REM @REM set "search_dir=%cd%" -@REM @REM @REM set "exclude_folder=Iam_The_Exclude_folder" - -@REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM set "exclude_file=0" -@REM @REM @REM for /f %%b in ('dir /ad /b "%search_dir%\%exclude_folder%"') do ( -@REM @REM @REM if "!folderpath:%search_dir%\=!"=="\%%b\" set "exclude_file=1" -@REM @REM @REM ) - -@REM @REM @REM if !exclude_file! == 0 ( -@REM @REM @REM echo !filepath! -@REM @REM @REM ) -@REM @REM @REM ) - -@REM @REM @REM pause - - - - - - - - - - - - - - - - - - - - - - - - - -@REM @REM @REM set "search_dir=%cd%" -@REM @REM @REM set "exclude_folder=dev_env" - -@REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM set "exclude_subfolder=0" -@REM @REM @REM if /i "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=1" -@REM @REM @REM if "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=0" - -@REM @REM @REM if !exclude_subfolder! == 0 ( -@REM @REM @REM echo !filepath! -@REM @REM @REM ) -@REM @REM @REM ) - - -@REM @REM @REM pause - - - - - - - -@REM @REM @REM set "search_dir=%cd%" -@REM @REM @REM @REM set zipFile=%cd%\output.zip -@REM @REM @REM @REM set exclude_folder=%cd%\dev_env -@REM @REM @REM set "exclude_folder=D:\11\01\python-binary-generator-py-to-pyc\dev_env" -@REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM set "exclude_subfolder=0" -@REM @REM @REM if /i "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=1" -@REM @REM @REM if "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=0" - -@REM @REM @REM if !exclude_subfolder! == 0 ( -@REM @REM @REM echo !filepath! -@REM @REM @REM ) -@REM @REM @REM ) - -@REM @REM @REM echo All operations completed successfully. -@REM @REM @REM pause - - -@REM @REM @REM @echo off -@REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM set "search_dir=%cd% - -@REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM echo %%~fa -@REM @REM @REM ) - -@REM @REM @REM pause - - - - -@REM @REM @REM @echo off -@REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM set "search_dir=C:\Your\Search\Directory" -@REM @REM @REM set "exclude_folder=exclude_folder" - -@REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM if /i not "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%" ( -@REM @REM @REM echo !filepath! -@REM @REM @REM ) -@REM @REM @REM ) - -@REM @REM @REM pause - - -@REM @REM @REM @echo off -@REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM set "search_dir=C:\Your\Search\Directory" -@REM @REM @REM set "exclude_folder=exclude_folder" - -@REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM if /i not "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%" ( -@REM @REM @REM echo !filepath! -@REM @REM @REM ) -@REM @REM @REM ) - -@REM @REM @REM pause - - - -@REM @REM @REM @echo off -@REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM set "search_dir=C:\Your\Search\Directory" -@REM @REM @REM set "exclude_folder=exclude_folder" - -@REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM set "exclude_subfolder=0" -@REM @REM @REM if /i "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=1" -@REM @REM @REM if "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=0" - -@REM @REM @REM if !exclude_subfolder! == 0 ( -@REM @REM @REM echo !filepath! -@REM @REM @REM ) -@REM @REM @REM ) - -@REM @REM @REM pause diff --git a/print_test/8_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders.bat b/print_test/8_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders.bat deleted file mode 100644 index 6e436c5..0000000 --- a/print_test/8_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders.bat +++ /dev/null @@ -1,465 +0,0 @@ - -@echo off -setlocal enabledelayedexpansion - -set "source_folder=%cd%" -set "exclude_subfolder=Iam_The_Exclude_folder" - -for /r "%source_folder%" %%F in (*.py) do ( - set "file_path=%%~fF" - set "subfolder=%%~dpF" - if /I not "!subfolder!"=="%exclude_subfolder%\" ( - echo !file_path! - ) -) - -endlocal -pause - -@REM endlocal - - -@REM @echo off -@REM setlocal - -@REM set "source_folder=%cd%" -@REM set "exclude_subfolder=Iam_The_Exclude_folder" - -@REM for %%F in ("%source_folder%\*.py") do ( -@REM set "file_path=%%~fF" -@REM set "subfolder=%%~dpF" -@REM if /I not "!subfolder!"=="%source_folder%\%exclude_subfolder%" ( -@REM echo !file_path! -@REM ) -@REM ) - -@REM endlocal - - - - - - - - - - - - - - - - - - - - - - - - - - - -@REM @echo off -@REM REM This script lists all .py files in a directory and its subfolders, excluding a specific folder. - -@REM setlocal enabledelayedexpansion - -@REM REM Set the search directory (current directory in this case) -@REM set "search_dir=%cd%" -@REM set "exclude_folder=Iam_The_Exclude_folder" - -@REM REM Loop through all .py files recursively -@REM for /r "%search_dir%" %%a in (*.py) do ( -@REM set "filepath=%%~fa" -@REM set "folderpath=%%~dpa" - -@REM REM Check if the folder path contains the excluded folder -@REM set "exclude_file=0" -@REM for /f %%b in ('dir /ad /b "%search_dir%\%exclude_folder%"') do ( -@REM if "!folderpath:%search_dir%\=!"=="\%%b\" ( -@REM set "exclude_file=1" -@REM goto :skip_file -@REM ) -@REM ) - -@REM REM Print the file path if it's not in the excluded folder -@REM :skip_file -@REM if !exclude_file! == 0 ( -@REM echo !filepath! -@REM ) -@REM ) - -@REM pause - - - - - - - - - - - - - - - - - - - - - - - - - -@REM @REM @echo off -@REM @REM REM This script lists all .py files in a directory and its subfolders, excluding a specific folder. - -@REM @REM setlocal enabledelayedexpansion -@REM @REM REM this is getting the path where the bat file is. -@REM @REM cd /D "%~dp0" -@REM @REM REM Set the search directory (current directory in this case) -@REM @REM set search_dir=%cd% -@REM @REM set exclude_folder=Iam_The_Exclude_folder -@REM @REM @REM #set input=%cd%\input -@REM @REM REM Loop through all .py files recursively -@REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM set "filepath=%%~fa" -@REM @REM set "folderpath=%%~dpa" - -@REM @REM REM Check if the folder path contains the excluded folder -@REM @REM set "exclude_file=0" -@REM @REM for /f %%b in ('dir /ad /b "%search_dir%\%exclude_folder%"') do ( -@REM @REM if "!folderpath:%search_dir%\=!"=="\%%b\" ( -@REM @REM set "exclude_file=1" -@REM @REM goto :skip_file -@REM @REM ) -@REM @REM ) - -@REM @REM REM Print the file path if it's not in the excluded folder -@REM @REM :skip_file -@REM @REM if !exclude_file! == 0 ( -@REM @REM echo !filepath! -@REM @REM ) -@REM @REM ) - -@REM @REM pause - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@REM @REM @REM @echo off -@REM @REM @REM REM This script lists all .py files in a directory and its subfolders, excluding a specific folder. - -@REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM REM Set the search directory (current directory in this case) -@REM @REM @REM set "search_dir=%cd%" -@REM @REM @REM set "exclude_folder=Iam_The_Exclude_folder" - -@REM @REM @REM REM Loop through all .py files recursively -@REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM REM Check if the folder path contains the excluded folder -@REM @REM @REM set "exclude_file=0" -@REM @REM @REM for /f %%b in ('dir /ad /b "%search_dir%\%exclude_folder%"') do ( -@REM @REM @REM if "!folderpath:%search_dir%\=!"=="\%%b\" ( -@REM @REM @REM set "exclude_file=1" -@REM @REM @REM goto :skip_file -@REM @REM @REM ) -@REM @REM @REM ) - -@REM @REM @REM REM Print the file path if it's not in the excluded folder -@REM @REM @REM :skip_file -@REM @REM @REM if !exclude_file! == 0 ( -@REM @REM @REM echo !filepath! -@REM @REM @REM ) -@REM @REM @REM ) - -@REM @REM @REM pause - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@REM @REM @REM @echo off -@REM @REM @REM REM This script lists all .py files in a directory and its subfolders, excluding a specific folder. - -@REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM REM Set the search directory (current directory in this case) -@REM @REM @REM set "search_dir=%cd%" -@REM @REM @REM set "exclude_folder=Iam_The_Exclude_folder" - -@REM @REM @REM REM Loop through all .py files recursively -@REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM REM Check if the folder path contains the excluded folder -@REM @REM @REM set "exclude_file=0" -@REM @REM @REM for /f %%b in ('dir /ad /b "%search_dir%\%exclude_folder%"') do ( -@REM @REM @REM if "!folderpath:%search_dir%\=!"=="\%%b\" set "exclude_file=1" -@REM @REM @REM ) - -@REM @REM @REM REM Print the file path if it's not in the excluded folder -@REM @REM @REM if !exclude_file! == 0 ( -@REM @REM @REM echo !filepath! -@REM @REM @REM ) -@REM @REM @REM ) - -@REM @REM @REM pause - - - - - - - - - - - - - - - - - - - - - - - - - - -@REM @REM @REM @REM @echo off -@REM @REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM @REM REM this is getting the path where the bat file is. -@REM @REM @REM @REM cd /D "%~dp0" - - - -@REM @REM @REM @REM set "search_dir=%cd%" -@REM @REM @REM @REM set "exclude_folder=Iam_The_Exclude_folder" - -@REM @REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM @REM set "exclude_file=0" -@REM @REM @REM @REM for /f %%b in ('dir /ad /b "%search_dir%\%exclude_folder%"') do ( -@REM @REM @REM @REM if "!folderpath:%search_dir%\=!"=="\%%b\" set "exclude_file=1" -@REM @REM @REM @REM ) - -@REM @REM @REM @REM if !exclude_file! == 0 ( -@REM @REM @REM @REM echo !filepath! -@REM @REM @REM @REM ) -@REM @REM @REM @REM ) - -@REM @REM @REM @REM pause - - - - - - - - - - - - - - - - - - - - - - - - - -@REM @REM @REM @REM set "search_dir=%cd%" -@REM @REM @REM @REM set "exclude_folder=dev_env" - -@REM @REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM @REM set "exclude_subfolder=0" -@REM @REM @REM @REM if /i "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=1" -@REM @REM @REM @REM if "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=0" - -@REM @REM @REM @REM if !exclude_subfolder! == 0 ( -@REM @REM @REM @REM echo !filepath! -@REM @REM @REM @REM ) -@REM @REM @REM @REM ) - - -@REM @REM @REM @REM pause - - - - - - - -@REM @REM @REM @REM set "search_dir=%cd%" -@REM @REM @REM @REM @REM set zipFile=%cd%\output.zip -@REM @REM @REM @REM @REM set exclude_folder=%cd%\dev_env -@REM @REM @REM @REM set "exclude_folder=D:\11\01\python-binary-generator-py-to-pyc\dev_env" -@REM @REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM @REM set "exclude_subfolder=0" -@REM @REM @REM @REM if /i "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=1" -@REM @REM @REM @REM if "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=0" - -@REM @REM @REM @REM if !exclude_subfolder! == 0 ( -@REM @REM @REM @REM echo !filepath! -@REM @REM @REM @REM ) -@REM @REM @REM @REM ) - -@REM @REM @REM @REM echo All operations completed successfully. -@REM @REM @REM @REM pause - - -@REM @REM @REM @REM @echo off -@REM @REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM @REM set "search_dir=%cd% - -@REM @REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM @REM echo %%~fa -@REM @REM @REM @REM ) - -@REM @REM @REM @REM pause - - - - -@REM @REM @REM @REM @echo off -@REM @REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM @REM set "search_dir=C:\Your\Search\Directory" -@REM @REM @REM @REM set "exclude_folder=exclude_folder" - -@REM @REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM @REM if /i not "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%" ( -@REM @REM @REM @REM echo !filepath! -@REM @REM @REM @REM ) -@REM @REM @REM @REM ) - -@REM @REM @REM @REM pause - - -@REM @REM @REM @REM @echo off -@REM @REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM @REM set "search_dir=C:\Your\Search\Directory" -@REM @REM @REM @REM set "exclude_folder=exclude_folder" - -@REM @REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM @REM if /i not "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%" ( -@REM @REM @REM @REM echo !filepath! -@REM @REM @REM @REM ) -@REM @REM @REM @REM ) - -@REM @REM @REM @REM pause - - - -@REM @REM @REM @REM @echo off -@REM @REM @REM @REM setlocal enabledelayedexpansion - -@REM @REM @REM @REM set "search_dir=C:\Your\Search\Directory" -@REM @REM @REM @REM set "exclude_folder=exclude_folder" - -@REM @REM @REM @REM for /r "%search_dir%" %%a in (*.py) do ( -@REM @REM @REM @REM set "filepath=%%~fa" -@REM @REM @REM @REM set "folderpath=%%~dpa" - -@REM @REM @REM @REM set "exclude_subfolder=0" -@REM @REM @REM @REM if /i "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=1" -@REM @REM @REM @REM if "!folderpath:~0,-1!"=="%search_dir%\%exclude_folder%\" set "exclude_subfolder=0" - -@REM @REM @REM @REM if !exclude_subfolder! == 0 ( -@REM @REM @REM @REM echo !filepath! -@REM @REM @REM @REM ) -@REM @REM @REM @REM ) - -@REM @REM @REM @REM pause diff --git a/print_test/9_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders.bat b/print_test/9_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders.bat deleted file mode 100644 index 93bd23f..0000000 --- a/print_test/9_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folders.bat +++ /dev/null @@ -1,20 +0,0 @@ -@echo off -setlocal enabledelayedexpansion - -set "source_folder=%cd%" -set "exclude_subfolder=Iam_The_Exclude_folder" - -for /r "%source_folder%" %%F in (*.py) do ( - set "file_path=%%~fF" - set "subfolder=%%~dpF" - set "exclude=0" - for %%A in ("%subfolder%") do ( - if /I "!subfolder:\%%~nxA\=!" neq "!subfolder!" set exclude=1 - ) - if %exclude%==0 ( - echo !file_path! - ) -) - -endlocal -pause diff --git a/print_test/Iam_The_Exclude_folder/7_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal.bat b/print_test/Iam_The_Exclude_folder/7_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal.bat deleted file mode 100644 index 0f7b524..0000000 --- a/print_test/Iam_The_Exclude_folder/7_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal.bat +++ /dev/null @@ -1,25 +0,0 @@ -@echo off - -REM this is getting the path where the bat file is. -cd /D "%~dp0" - -set search_dir=%cd% - -for "%search_dir%" %%a in (*.py) do ( - echo %%~fa -) -echo All operations completed successfully. -pause - - -@REM @echo off -@REM setlocal enabledelayedexpansion - -@REM set "search_dir=%cd% - -@REM for /r "%search_dir%" %%a in (*.py) do ( -@REM echo %%~fa -@REM ) - -@REM pause - diff --git a/print_test/Iam_The_Exclude_folder/Iam_inside_the_exclude_folder/test.py b/print_test/Iam_The_Exclude_folder/Iam_inside_the_exclude_folder/test.py deleted file mode 100644 index e69de29..0000000 diff --git a/print_test/Iam_The_Exclude_folder/test.py b/print_test/Iam_The_Exclude_folder/test.py deleted file mode 100644 index e69de29..0000000 diff --git a/print_test/iam_another_folder/test.py b/print_test/iam_another_folder/test.py deleted file mode 100644 index e69de29..0000000 diff --git a/10_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder.bat b/testing/10_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder.bat similarity index 100% rename from 10_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder.bat rename to testing/10_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder.bat diff --git a/11_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy.bat b/testing/11_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy.bat similarity index 100% rename from 11_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy.bat rename to testing/11_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy.bat diff --git a/12_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 2.bat b/testing/12_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 2.bat similarity index 100% rename from 12_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 2.bat rename to testing/12_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 2.bat diff --git a/13_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 3.bat b/testing/13_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 3.bat similarity index 100% rename from 13_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 3.bat rename to testing/13_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal_with_exclude_folder copy 3.bat diff --git a/7_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal.bat b/testing/7_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal.bat similarity index 100% rename from 7_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal.bat rename to testing/7_Double_Click_Me_To_Print_A_List_of_all_py_files_in_the_Terminal.bat