// Called by Directory Opus to initialize the script
function OnInit(initData) {
initData.name = 'ExpandTree';
initData.default_enable = true;
initData.min_version = '12.0';
}
// Called when a new Lister is opened
function OnOpenLister(openListerData) {
var cmd = DOpus.Create().Command();
cmd.SetSourceTab(openListerData.lister.activetab);
cmd.RunCommand('Go PATH=D:\ EXPANDTREE');
cmd.RunCommand('Go BACK');
}