I have the following:
Code: Select all
KFileA:=A_MyDocuments . "\1\AK.xlsx"
KFileB:=A_MyDocuments . "\2\BK.xlsx"
If (FileExist(KFileA))
Run,%KFileA%
Else
If (FileExist(KFileB))
Run,%KFileB%
Else
MsgBox,4112,Error,Neither K file exists on your system
Return
1.Check a Backup folder at KFile location if not create it.
Example: =A_MyDocuments . "\1\Backups"
2.Inside of this Backup folder create a datestamp folder: Example: A_MyDocuments . "\1\Backups\20200621_200237"
3.Copy KFile inside this folder.
Thank you in for your help.