Python Forum
how search files - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: how search files (/thread-33320.html)



how search files - Ron_Crafter - Apr-15-2021

how do python search exe files and open Think


RE: how search files - ndc85430 - Apr-15-2021

What? Please explain in more detail what you mean.


RE: how search files - Ron_Crafter - Apr-16-2021

I want it to look for exe folders and what is closest to the result will open it say and someone is looking for Minecraft so he is looking for it in folders and what is closest to the result he open


RE: how search files - ndc85430 - Apr-16-2021

What do you mean by "closest"? What do you mean by "open"? Execute? You can look at the subprocess module for spawning new processes: https://docs.python.org/3/library/subprocess.html.


RE: how search files - Ron_Crafter - Apr-17-2021

I want to make Python look for folders and open the. Which is most similar to the result