为简单起见,如何将这些代码行转换为双击桌面图标 [英] How do I make these line of codes into a double click desktop icon for simplicity

查看:99
本文介绍了为简单起见,如何将这些代码行转换为双击桌面图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为简单起见,我如何将这些代码行变成双击桌面图标。

到目前为止,我必须先编写第一行然后按Enter键再写第二行



cd / home / pi / git / TouchSelfie / scripts

python ./photobooth_gui.py



我尝试了什么:



我不太了解python,我正在关注一个覆盆子pi教程

How do I make these line of codes into a double click desktop icon for simplicity.
So far I have to write the first line then hit enter and then write the second line

cd /home/pi/git/TouchSelfie/scripts
python ./photobooth_gui.py

What I have tried:

I do not know much really about python and I was following a raspberry pi tutorial

推荐答案

如果这些是有效的命令,您可以将它们放入文本文件中,并使用扩展名.bat创建批处理文件或.cmd来生成命令文件。然后双击它将执行两行。
If those are valid commands you can just put them into a text file and use the extension .bat to make a batch file or .cmd to make a command file. Then double-clicking it will execute both lines.


这篇关于为简单起见,如何将这些代码行转换为双击桌面图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆