Hi Mikael,
 
Try to change the code :
 
       winapi::shellExecute('explorer.exe ' + vItemName);

become :

       winapi::shellExecute('explorer.exe ', vItemName);

 
 
Cheers,
Sonny Wibawa Adi


Mikael_Dalg�rd <[EMAIL PROTECTED]> wrote:
Hi all
 
From DOS I can use this parameter to open a directory "explorer C:\dirname". Does anybody know how I can open a directory with Axapta codes.
 
I have tried with this:
 
void clicked()
{
    str                          vItemName;
    SMM_CustTable       PrefTable;
 
    PrefTable   =   SMM_CustTable_DS.cursor();
    if (PrefTable)
    {
        vItemName = ' ' + xinfo::directory(directoryType::Appl);
        vItemName = vItemName + 'SMMArchive\\' + PrefTable.SMM_ID;
        winapi::shellExecute('explorer.exe ' + vItemName);
    }
    super();
}
 
Best regards
 
Mikael Dalg�rd
 
 
 


Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�

Yahoo! Groups Links

Reply via email to