text: import shutil
  import os
  import sys
  from threading import Thread
  from configparser import RawConfigParser
  import time
  # from win32api import MessageBox
  
  global out 
  out = 0
  
  def createBatchFile( source , destination , isfile=True):
      cached_stamp = 0
      
      while (out == 0):
          if isfile:
              stamp = os.stat(source ).st_mtime
              if stamp != cached_stamp:
                  cached_stamp = stamp
                  try:
                      shutil.copy(source, destination)
                  except Exception as e:
                      print(e)
          else :
              for i in os.listdir(source):
                  stamp = os.stat(os.path.join(source , i) ).st_mtime
                  if stamp != cached_stamp:
                      cached_stamp = stamp
                      try:
                          shutil.copy(os.path.join(source , i), os.path.join(destination  , i))
                      except Exception as e:
                          print(e)
          time.sleep(2)
  
  if __name__ == '__main__':
      try:
          if os.path.isfile(os.path.join(os.getcwd() , 'config.ini')):
              config = RawConfigParser()
              config.read('config.ini')
              source = config.get('APP', 'source')
              destination = config.get('APP', 'destination')
          
              if not os.path.exists(source):
                  print(f"{source} Path not found")
                  # MessageBox(0 , f"{source} Path not found" , "Error" ,0x00000010 )
                  sys.exit()
                  
              if not os.path.exists(destination):
                  os.mkdir(destination)
              isfile = os.path.isfile(source)
              t = Thread(target=createBatchFile, args=(source, destination , isfile))
              t.start()
  
              out = int(input("Press 1 to exit : "))
  
          else :
              with open(os.path.join(os.getcwd() , 'config.ini') , 'w') as f:
                  f.write("[APP]\nsource=\ndestination=")
                  f.close()
              # MessageBox(0 , "Kindly provide the source and destination path in config.ini file" , "Error" ,0x00000010 )
              sys.exit()
  
              
      except Exception as e:
          print(e)
          # MessageBox(0 , repr(e) , "Error" ,0x00000010 )
          sys.exit()