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 allFrom 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 regardsMikael Dalg�rd
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

