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.

Комментарии • 83

  • @rosscoguitar
    @rosscoguitar 3 года назад +7

    Mate, this video is excellent. Just what I was looking for. Thank you for making it!

  • @cissedesign6358
    @cissedesign6358 2 года назад +3

    this is the best video I have never seen before, that's amazing, thanks for the video

  • @rmt3589
    @rmt3589 2 года назад +1

    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!

  • @BlackFalcon.
    @BlackFalcon. 2 года назад +1

    Dude Love You ❤️ ! You Just Helped Me A Lot !

  • @theCursedSTONE
    @theCursedSTONE 3 года назад +12

    You could always rename file as NAME.pyw by nameing it .pyw it will hide the terminal window 😎😎😎

    • @thecodebear
      @thecodebear  3 года назад +8

      Yes that will work too for just hiding the terminal window

    • @colboypkt3345
      @colboypkt3345 2 года назад

      For me it not working can you please help me

  • @maindepth8830
    @maindepth8830 3 года назад +3

    Big maaan, safe g

  • @johanneswalcher5290
    @johanneswalcher5290 3 года назад +2

    i like deine Voice

  • @aimankhalid153
    @aimankhalid153 3 года назад +3

    Thank you sir

  • @gunguntyagi4591
    @gunguntyagi4591 3 года назад +3

    Thanks Sir

  • @teguhsabara2123
    @teguhsabara2123 3 года назад +1

    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.

  • @berdre2605
    @berdre2605 2 года назад +2

    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!'])

  • @Zodic_Z
    @Zodic_Z Месяц назад

    this will help me make a very deadly ........

  • @shahzaibakram2712
    @shahzaibakram2712 3 года назад +7

    I am getting this error:
    "Windows can't find the path specified", anyone please help?

    • @sakethgupta2885
      @sakethgupta2885 3 года назад +3

      Check if you selected the correct destination

    • @gregoryfenn1462
      @gregoryfenn1462 3 года назад +1

      Is the path right?

    • @IchBinDuck
      @IchBinDuck 3 года назад +3

      Try """Path"""

    • @dick6763
      @dick6763 3 года назад +1

      @@IchBinDuck Thanks so much)

    • @kingideaofficial
      @kingideaofficial 3 года назад

      Make sure that you typed the right path to the app.python file.

  • @akshathbharathi7376
    @akshathbharathi7376 2 года назад

    Make a video on automatic python task scheduler on a particular given time.

  • @gregoryfenn1462
    @gregoryfenn1462 3 года назад +4

    Why are people calling you “sir”? Do you have a knighthood?

    • @boriingz
      @boriingz 3 года назад +4

      Indian people call others they respect ‘sir’

    • @conorcasey3466
      @conorcasey3466 3 года назад

      @@boriingz what a load of Bollix... its all that Cast shite .

    • @boriingz
      @boriingz 3 года назад +1

      @@conorcasey3466 I'm Indian btw...

  • @ashikurrahman8874
    @ashikurrahman8874 2 года назад

    In my windows .vbs file not working. I taste it via cmd. show permission denied error

  • @makpiseth6577
    @makpiseth6577 2 года назад

    it is giving error of "The system cannot find the file specified". please help

  • @0Baita0
    @0Baita0 3 года назад

    When I did this, it simply brings up the vbs file in a notepad each time I restart the computer. send help!

  • @preethiratnala3650
    @preethiratnala3650 2 года назад

    i dont have a permission to change registry editer what should i do

  • @ekheshram
    @ekheshram 3 года назад +1

    I'm getting windows script host error yelling "The system can not find the specified path"

  • @akashuday7107
    @akashuday7107 3 года назад +1

    i want to send this exe file to someone and i want it to start autostart as well any method to do that??

    • @harigopaladamus9481
      @harigopaladamus9481 5 месяцев назад

      no it will not. did you ever figure it out?

    • @akashuday7107
      @akashuday7107 5 месяцев назад

      @@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

  • @relaxation_laboratory
    @relaxation_laboratory 3 года назад +1

    nothing works 😢😢

  • @burkertmedinabob4705
    @burkertmedinabob4705 2 года назад

    Can this work for python exe file as well?

  • @williamsonrobert6354
    @williamsonrobert6354 3 года назад

    Will The Win10Toast Module work on win 7

  • @omriarazi
    @omriarazi 3 года назад +3

    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

    • @dick6763
      @dick6763 3 года назад

      I have the same prob. Did you find any solution?
      Thank in advance for reply🙋‍♂️

    • @omriarazi
      @omriarazi 3 года назад

      @@dick6763 No, sorry

    • @dick6763
      @dick6763 3 года назад

      @@omriarazi I found solution: in vbs file put path in """.../app.py """

    • @saadahmedkhan990
      @saadahmedkhan990 3 года назад

      @@dick6763 just create another vbs file but with notpad plus

    • @bryangilbert9951
      @bryangilbert9951 2 года назад

      help

  • @ccuuttww
    @ccuuttww 3 года назад

    also work on WIN 7?

  • @bhanuduhan9765
    @bhanuduhan9765 3 года назад

    hi i have an issue can we make an script that will automatically open or start recently added file in a specific folder

  • @BitCloud047
    @BitCloud047 3 года назад

    Wait can you do this for a .py file?

  • @Lazy_82
    @Lazy_82 2 года назад

    not working for me

  • @SureshSingh-fh8dq
    @SureshSingh-fh8dq 3 года назад +1

    Can you provide me the source code

  • @Litfield
    @Litfield Год назад

    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:"

  • @malikarsalanaftab6739
    @malikarsalanaftab6739 3 года назад

    I am getting this error "unable to wait for process" in vbs file don't know why ???

    • @thecodebear
      @thecodebear  3 года назад

      Check if the command starts with any space or tab , remove that and it should work fine

    • @malikarsalanaftab6739
      @malikarsalanaftab6739 3 года назад

      @@thecodebear problem is still there I have checked there is no space or tab at the start of command???

  • @henryzhang3097
    @henryzhang3097 3 года назад

    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?

    • @thecodebear
      @thecodebear  3 года назад

      Is your path correct ?
      Check it again

    • @henryzhang3097
      @henryzhang3097 3 года назад

      @@thecodebear Yes

    • @sakethgupta2885
      @sakethgupta2885 3 года назад

      @@henryzhang3097 Google it.....

    • @henryzhang3097
      @henryzhang3097 3 года назад

      @@sakethgupta2885 oh no i figured everything out already lol

    • @evintoh116
      @evintoh116 3 года назад

      @@henryzhang3097 so what was the solution to your problem? I'm getting the same thing too

  • @easypython5216
    @easypython5216 3 года назад +1

    how to stop it?

  • @RRGRawat
    @RRGRawat 2 года назад

    Does the same process also work for .exe file ?

    • @RRGRawat
      @RRGRawat 2 года назад

      Only change is:
      In .bat file
      Replace python with powershell and .py with .exe

  • @Maor36a
    @Maor36a 2 года назад

    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

    • @thecodebear
      @thecodebear  2 года назад

      Task manager

    • @Maor36a
      @Maor36a 2 года назад

      @@thecodebear Couldn't find it there. Searched it a few times. Any idea what would be the appearing name ?

    • @thecodebear
      @thecodebear  2 года назад

      @@Maor36a name of the process will be exactly same as you python file. It should be there

  • @lumidusk3463
    @lumidusk3463 3 года назад

    can i have the download for the software to script?

    • @thecodebear
      @thecodebear  3 года назад +1

      Couldnt understand what you are trying to say

    • @torpezaincreible8692
      @torpezaincreible8692 3 года назад +1

      @@thecodebear i think he is asking for the script
      Lol

  • @andermast7344
    @andermast7344 3 года назад

    when I open the vbs file it disappear... how can I resolve?

    • @thecodebear
      @thecodebear  3 года назад

      Does it disappear from the folder ?