Python Automation project : Run Python scripts Automatically in backgroud on windows startup
HTML-код
- Опубликовано: 11 сен 2024
- Python Automation project : Run Python Automatically in backgroug on windows startup
this is the part 2 of python automation project where we were writting a script that automatically organises our files in a folder . in this video we will make this python script run automatically in background on windows and the program will be executed automatically when the windows boots up.
Mate, this video is excellent. Just what I was looking for. Thank you for making it!
this is the best video I have never seen before, that's amazing, thanks for the video
Batch was my first programming language, and I feel so dumb for not thinking of using it to run pip install!
Solves so many issues!
Dude Love You ❤️ ! You Just Helped Me A Lot !
You could always rename file as NAME.pyw by nameing it .pyw it will hide the terminal window 😎😎😎
Yes that will work too for just hiding the terminal window
For me it not working can you please help me
Big maaan, safe g
i like deine Voice
Thank you sir
Thanks Sir
I have a problem, and I also don't understand the googling keywords.
I was told to make a program, when the user uses wifi, the wifi has been set to compress files when the user uses it to send files.
Thanks for this video. It was exactly what i was looking for and is working except for one point:
I wanted to write csv-dummy files with the date and time as filename. For some reason when I use the autostart the script will break up (or get stuck) creating these dummyfiles (without actually creating a file)
When i normally try to run the script from console it works just fine. It's just the csv-writing which fails when it autostarts.
Any idea what the reason might be?
My Code for filewriting:
import csv
toast.show_toast("Step 3.5 ", f"csv-Imported", duration = 5) # This step still works
with open(f"{fname}.csv",'w') as f:
writer = csv.writer(f)
writer.writerow(['Dummy!'])
this will help me make a very deadly ........
I am getting this error:
"Windows can't find the path specified", anyone please help?
Check if you selected the correct destination
Is the path right?
Try """Path"""
@@IchBinDuck Thanks so much)
Make sure that you typed the right path to the app.python file.
Make a video on automatic python task scheduler on a particular given time.
Why are people calling you “sir”? Do you have a knighthood?
Indian people call others they respect ‘sir’
@@boriingz what a load of Bollix... its all that Cast shite .
@@conorcasey3466 I'm Indian btw...
In my windows .vbs file not working. I taste it via cmd. show permission denied error
it is giving error of "The system cannot find the file specified". please help
When I did this, it simply brings up the vbs file in a notepad each time I restart the computer. send help!
i dont have a permission to change registry editer what should i do
I'm getting windows script host error yelling "The system can not find the specified path"
i like your profilpicture
@@johanneswalcher5290 Thanks
Check your path, your path is incorrect
i want to send this exe file to someone and i want it to start autostart as well any method to do that??
no it will not. did you ever figure it out?
@@harigopaladamus9481 i mean if they running on linux its possible you can send this along a shell script that requires sudo as soon as they run the script that can execute this file but exe its not possible on windows the security wont allow you to add to autostart without proper certs if im not wrong
nothing works 😢😢
Share your code
Can this work for python exe file as well?
Will The Win10Toast Module work on win 7
Hi, thanks for the video! I have just one problem. The vbs file doesn't work, it gives me a 80070002 error code. Do you know what can fix this?
By the way I am not using this to run the file organizer but a different .py code
I have the same prob. Did you find any solution?
Thank in advance for reply🙋♂️
@@dick6763 No, sorry
@@omriarazi I found solution: in vbs file put path in """.../app.py """
@@dick6763 just create another vbs file but with notpad plus
help
also work on WIN 7?
hi i have an issue can we make an script that will automatically open or start recently added file in a specific folder
Offcourse you can
Wait can you do this for a .py file?
not working for me
Can you provide me the source code
without os.chdir() i get: "WNDPROC return value cannot be converted to LRESULT"
with os.chdir() i get: "Syntax Error: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape: C:"
I am getting this error "unable to wait for process" in vbs file don't know why ???
Check if the command starts with any space or tab , remove that and it should work fine
@@thecodebear problem is still there I have checked there is no space or tab at the start of command???
I'm getting an error where is says, can't open file 'can't open file 'C:\Users\user\Desktop
otifs\app.py': [Errno 2] No such file or directory
Press any key to continue . . .'
app.py not working?
Is your path correct ?
Check it again
@@thecodebear Yes
@@henryzhang3097 Google it.....
@@sakethgupta2885 oh no i figured everything out already lol
@@henryzhang3097 so what was the solution to your problem? I'm getting the same thing too
how to stop it?
Task manager 😂
Does the same process also work for .exe file ?
Only change is:
In .bat file
Replace python with powershell and .py with .exe
Thanks for the video. It seems like the script is now running non-stop in the background. How can I find the process in case I want to kill it?
Cheers
Task manager
@@thecodebear Couldn't find it there. Searched it a few times. Any idea what would be the appearing name ?
@@Maor36a name of the process will be exactly same as you python file. It should be there
can i have the download for the software to script?
Couldnt understand what you are trying to say
@@thecodebear i think he is asking for the script
Lol
when I open the vbs file it disappear... how can I resolve?
Does it disappear from the folder ?