How to execute your python script with a double click ??

preview_player
Показать описание
This video will show you how you can execute your python script by double clicking a file!

# Follow on Instagram:-

# Follow on Facebook:-

# Subscribe to Study Less & Score More and never miss an update from us:-
Рекомендации по теме
Комментарии
Автор

Thank you! :D this solved my problem, however, I did some changes. Instead of copying the whole path into the batch-script, I just wrote:

@cd %DIR%

@py.exe tegnliste.py %*

@pause

the @cd %DIR% means 'change to current directory'. And then

This means, as long as the bat-file and the python-script are in the same folder, you're good to go :)

nikolaisandbeck
Автор

Thanks, bro...I wanted this just because a made a keylogger and rubber ducky file And I wanted to inject this into my friend's pc.

teencoder
Автор

THANK YOU man!!

I will just add that, in case you have spaces in your directory name, you need to put it between quotation marks or similar. Like: "C:\MyFolder\These Are Various Words\script.py"

fernandomanzanares
Автор

Thank you so much for sharing the information brother...

Simba_
Автор

Awesome video .... Thanks for sharing ✌🏻

sahil.jasrotia
Автор

Great video! 🎊
Does anyone know, whether it is necessary to deal with packages like numpy, pandas, matplotlib and so on, that need to be installed (at the beginning of the python file)? For some of my programs this procedure works, but for others it doesn't and this might be a reason i think.

linusgrote
Автор

Hello sir, does it also work on Raspbian? Specifically on raspberry pi

bobitsstibob
Автор

For me it's showing py exe is not recognised as an internal or external command...what should I do??

ajupv
Автор

isn't there any way to use some settings for all .py files so we wouldn't need to create .bat for each one?

reza_et
Автор

for me it only worked with python.exe instead of py.exe if anyone else has it not working wright away

jakobkirchner
visit shbcf.ru