
    %
ii	                         d dl Z d dlZd dlmZ  G d d          Zedk    rkd dlZ eej                  dk     r e	d            ej
        d           ej        d         Z e            Ze j                            e          re                    e            e	d	ed
e                    ej                  d          de                                de                                de                                d           dS  eej                  dk     r e	d            ej
        d            edej        dd         d          ZeD ]\  ZZerer  eee          e           e                    e           dS dS )    N)shellc                   &    e Zd Zd Zd Zd Zd ZdS )
PyShortcutc                 z    t          j        t          j        d t           j        t          j                  | _        d S N)	pythoncomCoCreateInstancer   CLSID_ShellLinkCLSCTX_INPROC_SERVERIID_IShellLink_base)selfs    C:\Users\Dell Inspiron 16\Desktop\tws\AgrotaPowerBi\back-agrota-powerbi\mcp-client-agrota\venv\Lib\site-packages\win32comext/shell/demos/create_link.py__init__zPyShortcut.__init__   s/    /!* 	
 



    c                 t    | j                             t          j                                      |           d S r   )r   QueryInterfacer   IID_IPersistFileLoadr   filenames     r   loadzPyShortcut.load   s1     	
!!)"<==BB8LLLLLr   c                 v    | j                             t          j                                      |d           d S )Nr   )r   r   r   r   Saver   s     r   savezPyShortcut.save   s1    
!!)"<==BB8QOOOOOr   c                 <    |dk    rt          | j        |          S d S )Nr   )getattrr   )r   names     r   __getattr__zPyShortcut.__getattr__   s$    7??4:t,,, ?r   N)__name__
__module____qualname__r   r   r   r    r   r   r   r   
   sV        
 
 
M M M
P P P- - - - -r   r   __main__   zUsage: %s LinkFile [path [, args[, description[, working_dir]]]]

If LinkFile does not exist, it will be created using the other args   zShortcut in file z to file:
	z
Arguments:
	z
Description:
	z
Working Directory:
	z
ItemIDs:
	<skipped>   z\Link file does not exist
You must supply the path, args, description and working_dir as args)SetPathSetArgumentsSetDescriptionSetWorkingDirectory)osr   win32com.shellr   r   r    syslenargvprintexitfileshortcutpathexistsr   GetPathSLGP_SHORTPATHGetArgumentsGetDescriptionGetWorkingDirectorymapdatavaluefunctionr   r   r#   r   r   <module>r@      s;   
			                - - - - - - - -, zJJJ
s38}}q V	
 	
 	
 	8A;Dz||H	w~~d d   !566q999%%'''''')))),,....
	
 
	
 
	
 
	
 
	
 3sx==1Eo   CHQKKKsHQRRLP
 

  $ 	3 	3OE8 3 3+(++E222dS r   