Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/346.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何在windows 10 PC启动时自动启动程序_Python_Python 3.x_Windows_Tkinter_Automation - Fatal编程技术网

Python 如何在windows 10 PC启动时自动启动程序

Python 如何在windows 10 PC启动时自动启动程序,python,python-3.x,windows,tkinter,automation,Python,Python 3.x,Windows,Tkinter,Automation,我想让Python3 tkinter程序在我的电脑启动时启动。例如,我编程的tkinter窗口必须在登录后启动。有什么方法可以做到这一点吗?1.创建批处理文件以启动应用程序。 打开记事本并基于以下模板创建批处理文件 "Path where your Python exe is stored\python.exe" "Path where your Python script is stored\script name.py" pause 将文件另存为bat文件(例如:script.bat)并创

我想让Python3 tkinter程序在我的电脑启动时启动。例如,我编程的tkinter窗口必须在登录后启动。有什么方法可以做到这一点吗?

1.创建批处理文件以启动应用程序。

打开记事本并基于以下模板创建批处理文件

"Path where your Python exe is stored\python.exe" "Path where your Python script is stored\script name.py"
pause
将文件另存为bat文件(例如:script.bat)并创建快捷方式

2。将批处理文件放入启动文件夹

  • 按开始按钮,键入Run并按enter
  • 在运行窗口中键入
    shell:startup
    ,然后按enter键
  • 通过打开的窗口中的巴斯文件快捷方式

  • @谢谢你的建议。我添加了示例可能的副本: