Generation

generate functionWed, 17 May 2023

script donde escanee los archivos de un pc en busca de un .exe especificó

def search(path): found = False for file in os.listdir(path): if file.endswith('.exe'): print(os.path.join(path, file)) found = True if found == False: print('no .exe file found') search('C:\\')

Questions about programming?Chat with your personal AI assistant