怎么在windows上启动python_在Windows上启动时运行Python程序

1586010002-jmsa.png

I am developing a key-logger on Python (only for curiosity sake). And the script will be an executable. Without access to the computer so the process should not need a UI or user interaction.

Is there any way, even in another executable to make the key-logger start at start-up ?

解决方案

I don't use Windows, but you can try making a batch script that runs your python file and make that script Run a program automatically when Windows starts:

Click the Start button Picture of the Start button , click All

Programs, right-click the Startup folder, and then click Open.

Open the location that contains the item you want to create a shortcut

to.

Right-click the item, and then click Create Shortcut. The new

shortcut appears in the same location as the original item.

Drag the shortcut into the Startup folder.

As I said, I don't use Windows, so it might be totally wrong.

You can refer here for making the BAT file, which basically says:

@echo off

python c:\somescript.py %*

pause

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值