SaveLast5_to_BackupSL5.ahk

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
SL5
Posts: 879
Joined: 12 May 2015, 02:10
Contact:

SaveLast5_to_BackupSL5.ahk

14 Mar 2019, 09:18

howto use it:

RunWait, SaveLast5_to_BackupSL5.ahk "%A_ScriptFullPath%" "c:/backup", %A_ScriptDir%

its only copy if you really changed something.
it not changing the script name (nowhere). it leaves your folder structure as it is (in backup some mor foldernames addet, see screenshot).

i run it every time if i sava a script automatically.

source: https://github.com/sl5net/global-IntelliSense-everywhere/blob/master/Source/SaveLast5_to_BackupSL5.ahk

example images below:
Attachments
2019-03-14 15_16_22-Table awaiting Action.png
2019-03-14 15_16_22-Table awaiting Action.png (42.14 KiB) Viewed 1594 times
2019-03-14 15_05_28-Table awaiting Action.png
2019-03-14 15_05_28-Table awaiting Action.png (41.58 KiB) Viewed 1594 times
User avatar
Thoughtfu1Tux
Posts: 125
Joined: 31 May 2018, 23:26

Re: SaveLast5_to_BackupSL5.ahk

18 Mar 2019, 22:29

Great work! this function is included by default in AHKStudio and is incredibly useful if you want to see a bit of code that you had in a script a week ago but took out because you didn’t think you’d be reusing it. This would be a hug benefit to people that are using other editors.
User avatar
SL5
Posts: 879
Joined: 12 May 2015, 02:10
Contact:

Re: SaveLast5_to_BackupSL5.ahk

19 Mar 2019, 01:55

Thoughtfu1Tux wrote:
18 Mar 2019, 22:29
Great work! this function is included by default in AHKStudio and is incredibly useful if you want to see a bit of code that you had in a script a week ago but took out because you didn’t think you’d be reusing it. This would be a hug benefit to people that are using other editors.
where?
I can not find it there in the source code. has it been renamed there?
User avatar
Thoughtfu1Tux
Posts: 125
Joined: 31 May 2018, 23:26

Re: SaveLast5_to_BackupSL5.ahk

19 Mar 2019, 12:35

SL5 wrote:
19 Mar 2019, 01:55
Thoughtfu1Tux wrote:
18 Mar 2019, 22:29
Great work! this function is included by default in AHKStudio and is incredibly useful if you want to see a bit of code that you had in a script a week ago but took out because you didn’t think you’d be reusing it. This would be a hug benefit to people that are using other editors.
where?
I can not find it there in the source code. has it been renamed there?
Sorry, I phrased that incorrectly. A function very similiar to yours is included by default in AHKStudio. It creates a backup just about every time that you make an edit to a script. It's a little different from yours but has a very similar functionality.
User avatar
SL5
Posts: 879
Joined: 12 May 2015, 02:10
Contact:

Re: SaveLast5_to_BackupSL5.ahk

20 Mar 2019, 05:25

Thoughtfu1Tux wrote:
19 Mar 2019, 12:35
SL5 wrote:
19 Mar 2019, 01:55
Thoughtfu1Tux wrote:
18 Mar 2019, 22:29
Great work! this function is included by default in AHKStudio and is incredibly useful if you want to see a bit of code that you had in a script a week ago but took out because you didn’t think you’d be reusing it. This would be a hug benefit to people that are using other editors.
where?
I can not find it there in the source code. has it been renamed there?
Sorry, I phrased that incorrectly. A function very similiar to yours is included by default in AHKStudio. It creates a backup just about every time that you make an edit to a script. It's a little different from yours but has a very similar functionality.
yes, I knew that for a long time. but it is very different in two ways. First, the studio has no special versioning (sry fo my english). this simply saves everything with timestamp. if you look at the screenshots the difference will be clear to you.
Secondly, the ahkStudio only saves Auto Hotkey files (I'm not totally sure).
User avatar
SL5
Posts: 879
Joined: 12 May 2015, 02:10
Contact:

Example configuration for an IDE

25 Mar 2019, 02:38

Example configuration for an IDE of jetBrains: ....\AutoHotkey.exe "H:\SaveLast5_to_BackupSL5.ahk" $FilePath$ H:\BackupSaveLast5

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 79 guests