Perhaps an MS-Win user can help the OP, please?
--
Regards,
=dn
--- Begin Message ---
Hello dn,
Thanks for your reply. My apologies, I should have provided more background
information.
I was recently running a Windows 10 machine and I believe it was running Python
3.8. All I did was create a batch file titled Start-AIG.bat which simply
contained the following: "pythonw AIG.py". It started a python program titled
"AIG.py" and the Python dialog box was displayed on my screen, running all day
and night. I set up Windows to run this batch file upon startup and it worked
fine. I remember having to do a bunch of research before I learned that I
needed to put "pythonw AIG.py" in the batch file as opposed to "python AIG.py".
However, my old windows 10 desktop crashed and I have a new Windows 11 machine.
I installed the latest stable version of Python, which is 3.10. Now, when I
try to execute the same batch file, it doesn't launch the app. It could be
because I'm using Windows 11 or could be because I now have a newer version of
Python.
With this additional information, do you have any ideas what I should do to get
the Python script running in the same way I had it running before?
Thank you!
Brent
-----Original Message-----
From: Python-list <python-list-bounces+brent=brenthunter...@python.org> On
Behalf Of dn
Sent: Saturday, April 30, 2022 5:48 PM
To: python-list@python.org
Subject: Re: Python Question re Executing a Script
On 01/05/2022 10.37, Brent Hunter wrote:
> Hello,
>
> I just purchased a new Windows 11 computer and installed Python 3.10.4 (64
> bit). I can't figure out from your documentation, how do I:
>
>
> 1. Run a python script that is located in the same directory (
> C:\Users\Brent\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python
> 3.10 )
>
>
> 1. How do I automatically run a python app at Windows startup?
>
> Thank you!
>
> Brent Hunter
Please start with https://docs.python.org/3/using/windows.html
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list
--- End Message ---
--
https://mail.python.org/mailman/listinfo/python-list