How to run a python script in the background?

前端 未结 6 581
耶瑟儿~
耶瑟儿~ 2020-11-29 04:46

I have a script that checks something on my PC every 5 minutes and I don\'t want Python to show on my task tray. I use Windows as my operating system.

Is there any w

6条回答
  •  有刺的猬
    2020-11-29 05:16

    To Run python file from any where :

    Step 1:

    Create Shortcut of Python File.
    

    Step 2:

    Place Shortcut in this location  C:\ProgramData\Microsoft\Windows\Start Menu\Programs
    

    Step 3:

    Now Right Click --> Go to Properties --> Shortcut --> Press any key on keyboard it will take one shortcut key
    

    Step 4:

    Now , Type the Shortcut key which you entered in previous step.
    

    Step 5:

    Check out Output!   :)
    

提交回复
热议问题