Tally Prime Auto Backup TDL Code

नमस्कार दोस्तों आज हम एक ऐसे tdl फाइल के बारे में चर्चा करेंगे ,जिसकी मदद से आप अपने Tally Prime में Auto Backup कर सकते हैं इस TDL के उपयोग से आपके Tally Prime में Automatically Backup हो जायेगा इसका मतलब है कि आपको बार-बार बैकअप करने की आवश्यकता नहीं पड़ेगी और यह Auto Backup के रूप में आपकी C drive में एक अलग Folder बनाएगा जिसमे आपके सभी बैकअप स्टोर होंगे तो चलिए देखते हैं कि हम कैसे उपयोग कर सकते हैं इस tdl फ़ाइल का tally prime में ?

Auto Backup TDL Code

[System: Events]

TSPL Smp CmpLoadEvent2 : Load Company : NOT $$IsRemoteCompany : Call : Backup Function

;; Close Company Event
TSPL Smp CmpCloseEvent : Close Company : NOT $$IsRemoteCompany : Call : Backup Function

; TSPL Smp CmpBackUp : Close Company : NOT ($IsAggregate:Company:##SVCurrentCompany) AND NOT $$IsRemoteCompany : Call : Backup Function : CALL : BackupFunction

[Function: Backup Function]
Variable : Backup Det Var: String
00 : IF : ##EnableAutoBackup
10 : IF : ##AutoBackupPrompt
20 : QUERYBOX : "Backup Company ?" : Yes:No
30 : IF : $$LastResult
40 : CALL : Backup Company
50 : ENDIF
60 : ELSE :
70 : CALL : Backup Company
80 : ENDIF
90 : ENDIF

[Function: Backup Company]
10 : SET : BackupDetVar : @@DestPath + ", " + ##SVCurrentPath + ", " + ##SVCurrentCompany + +
", " + @@CoNumber
20 : BACKUP COMPANY : "," : ##BackupDetVar
30 : SET : SVBackupPath : @@DestPath

[System: Formula]
DestPath : ##DestinationPath + "\" + @@DateForm + "\" + @@TimeForm
CoNumber : $$String:($CompanyNumber:Company:##SVCurrentCompany):5
DateForm : $$String:$$MachineDate
TimeForm : @@HrsForm + @@MtsForm
HrsForm : If $$StringPart:$$MachineTime:0:2 CONTAINS ":" +
Then $$StringPart:$$MachineTime:0:1 +
Else $$StringPart:$$MachineTime:0:2
MtsForm : if $$StringPart:$$MachineTime:0:2 CONTAINS ":" +
Then $$StringPart:$$MachineTime:2:2 +
Else $$StringPart:$$MachineTime:3:2

;; Enable configuration options - used in General of F12 Configuration

[#Part: System Common]
Add : Lines : Enable Auto Backup, Auto Backup Path, Auto Backup Path Info, Auto Backup Prompt

[Line: Enable Auto Backup]
Field: Long Prompt, Enable Auto Backup
Local: Field: Long Prompt : Info : $$LocaleString:"Enable Automatic Backup Feature?"
[Field: Enable Auto Backup]
Use : Logical Field
Modifies : EnableAutoBackup

[Line: Auto Backup Path]
Field: Long Prompt, Auto Backup Path
Local: Field: Long Prompt : Info : $$LocaleString:"Destination Path?"
Local: Field: Long Prompt : Inactive: NOT #EnableAutoBackup
Local: Field: Long Prompt : Indent : 2
[Field: Auto Backup Path]
Use : Name Field
Modifies : DestinationPath
Inactive : NOT #EnableAutoBackup
Set As : If $$IsEmpty:##DestinationPath Then "D:\Autobackup" else ##DestinationPath

[Line: Auto Backup Path Info]
Field: Simple Field
Local: Field: Simple Field : Info : $$LocaleString:"(Subfolders for System Date and Time will be created within)"
Local: Field: Simple Field : Inactive: NOT #EnableAutoBackup
Local: Field: Simple Field : Style : Small Italic
Indent: 1

[Line: Auto Backup Prompt]
Field: Long Prompt, Auto Backup Prompt
Local: Field: Long Prompt : Info : $$LocaleString:"Confirmation from user?"
Local: Field: Long Prompt : Inactive: NOT #EnableAutoBackup
Local: Field: Long Prompt : Indent : 2
[Field: Auto Backup Prompt]
Use : Logical Field
Modifies : AutoBackupPrompt
Inactive : NOT #EnableAutoBackup
Set As : If $$IsEmpty:##AutoBackupPrompt Then Yes else ##AutoBackupPrompt
;; Variable Definition
[Variable: EnableAutoBackup]
Type : Logical
Persistent : Yes
[Variable: DestinationPath]
Type : String
Persistent : Yes
[Variable: AutoBackupPrompt]
Type : Logical
Persistent : Yes
[System: Variable]
EnableAutoBackup: Yes
DestinationPath : "D:\Autobackup"
AutoBackupPrompt: Yes
;;;END OF FILE

Step 2: अब above code को Save करने के बाद Tally Prime पर TDL File अपलोड करें ( और अगर आपको Tally Prime पर TDL File upload करने का तरीका नहीं पता है तो नीचे दिए गए Link पर Click करें जो आपको Tally Prime पर TDL File अपलोड करने के लिए Guide करेगा )

Step 3: Now Restart Your Tally Prime Software and you will get a prompt as shown Below the image, Click Yes if you want to backup your company

और इस तरह से आप Tally prime में  Auto Backup कर सकते है । और यह Auto Backup के रूप में आपकी C drive में एक अलग Folder बनाएगा जिसमे आपके सभी बैकअप स्टोर होंगे

धन्यवाद दोस्तों! अगर आपको ये आर्टिक्ल पसंद आया हैं तो इसको सोशल मीडिया पर अपने दोस्तो के साथ जरूर से शेयर कीजिए, जिससे उनको भी ये जानकारी प्राप्त हो सके।

 Download Button पर  Click करके फ़ाइल डाउनलोड करें

Join Our Telegram Group techguruplus telegram group Join Our WhatsApp Group techguruplus whatsapp group
Nazim Khan - Author Image

Nazim Khan (Author) 📞 +91 9536250020
[MBA in Finance]

Nazim Khan is an expert in Microsoft Excel. He teaches people how to use it better. He has been doing this for more than ten years. He is running this website (TechGuruPlus.com) and a YouTube channel called "Business Excel" since 2016. He shares useful tips from his own experiences to help others improve their Excel skills and careers.

9 thoughts on “Tally Prime Auto Backup TDL Code”

  1. Nazim, Greetings! 😀💐 I downloaded your Auto-Backup TDL. As I went thru its text file, I found that it creates a separate file for each backup. I want that your TDL to over right my existing backup file. What changes are to be made to achieve this?

    Warm regards,

    Raahul Dev
    #Freedompreneur
    #DesigningLives

    Reply
  2. ;; ADD “0”+ TO CONUMBER LINE ..REQUIRED FOR COMPANY NUMBER STARTING WITH 0
    CoNumber : “0”+$$String:($CompanyNumber:Company:##SVCurrentCompany):5

    Reply
  3. Is it possible to change the backup file path & name? I want to overwrite the existing backup file every time data is backed up. I want to back up the opened company to its backup destination folder. How it can be done?

    Warmly,

    Raahul Dev
    #Freedompreneur
    #DesigningLives

    Reply

Leave a Comment