How to start a Python application with Windows? (cx_freeze)

-1

Hello, I'm trying to develop an application that starts with windows, but I've already tried to make the program copy itself to the folder

  

"C: \ Users \ User \ AppData \ Roaming \ Microsoft \ Windows \ Start   Menu \ Programs \ Startup "

But I get access denied, I'm using Python 3.5 and cx_freeze to generate the executable.

    
asked by anonymous 12.02.2017 / 05:48

2 answers

0

You could make a bat and add it to the PC startup. So you would make your bat have the following content:

C:/Caminho/Do/python.exe C:/Caminho/Do/Seu/Arquivo

And if you run you can run your script. Done this bat file, you just add it to the list of programs to boot when your PC boots.

    
12.02.2017 / 13:03
0

Try using the folder

  C: \ ProgramData \ Microsoft \ Windows \ Start Menu \ Programs \ StartUp

Do not forget to make sure you're running your program as an administrator.

    
14.02.2017 / 03:04