Automatically move files using AHK

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
omar
Posts: 540
Joined: 22 Oct 2015, 17:56

Automatically move files using AHK

Post by omar » 26 May 2022, 15:15

I just saw a python tutorial showing how to move files from a folder, rename and do some other things.

It looked cool.

1. How can we do the same in AHK?
Moving files I can do.
It's the automation part I'm not sure about.

2. I don't want to happen automatically. I want to happen once a week say.

3. What are the overheads? 🤔
I'm guessing having such a program run needs resources like memory. On this point, does python have an advantage? Like can it attach itself to program services for example? The code on YouTube showed running on mac, but the code is universal I guess?

Just wondering how to do if I were to use AHK.

Thanks.

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Automatically move files using AHK

Post by mikeyww » 26 May 2022, 15:31

Windows Task Scheduler can run your script whenever you want. There is no overhead.

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Automatically move files using AHK

Post by BoBo » 26 May 2022, 15:50

Code: Select all

if (A_WDay = 4) ; Wednesday
    FileMove, c:\one.txt, d:\one.txt
To be hosted within the Windows Autostart folder. Preferably started only once a day.

User avatar
Chunjee
Posts: 1420
Joined: 18 Apr 2014, 19:05
Contact:

Re: Automatically move files using AHK

Post by Chunjee » 26 May 2022, 15:54

omar wrote:
26 May 2022, 15:15
1. How can we do the same in AHK?
Moving files I can do.
It's the automation part I'm not sure about.
I have this app; we schedule it with Windows Task Scheduler to run at 2:00 AM or something; but you can also schedule for once a week.
https://github.com/Chunjee/Ops-FilePidgen

You can also just loop a filemove command forever; I don't think is a great idea because eventually the OS or application will have downtime.

Post Reply

Return to “Ask for Help (v1)”