Quote from: Mathias (Author) on June 03, 2013, 11:03:48Quote from: avantuser1114 on June 03, 2013, 11:00:57I don't agree.
it's still best to start from 1024...
you won't allow an option to start from 1024?
MultiCommander v16.6 is released!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Mathias (Author) on June 03, 2013, 11:03:48Quote from: avantuser1114 on June 03, 2013, 11:00:57I don't agree.
it's still best to start from 1024...
//Stop current background process
MC.RunUserCmd ID=1f0dd40bcbe544ae882ee46bf77c115b;
@var $path = GetSourcePath();
@var $roots[] = {"C:\", "D:\", "E:\", "F:\", "G:\", "H:\", "I:\", "J:\", "K:\", "L:\"};
@var $isroot = 0;
@var $i;
for ($i = 0; $i < 10; $i++)
{
@var $str = $roots[$i];
if (StrIsEqual($path, $str))
{
$isroot = 1;
break;
}
}
//if current path is a root, then go to "E:\"
if ($isroot == 1)
{
MC.Explorer.Goto SOURCE="E:\";
}
//else go to the parent folder
else
{
//Go to parent folder
MC.RunCmd ID=ExplorerPanel.41052;
}
//Refresh
MC.RunCmd ID=ExplorerPanel.41060;
//Calculate folders' sizes
MC.RunCmd ID=ExplorerPanel.51010;
Go Down:
//Stop current background process
MC.RunUserCmd ID=1f0dd40bcbe544ae882ee46bf77c115b;
@var $folder = GetSourceFocusPath();
@var $links[] = {"E:\Local Disk (C)", "E:\Local Disk (D)", "E:\Local Disk (E)", "E:\Local Disk (F)", "E:\Local DVD RW Drive (G)", "E:\Removable Disk (H)", "E:\Removable Disk (I)", "E:\Removable Disk (J)", "E:\Removable Disk (K)", "E:\Removable Disk (L)"};
@var $roots[] = {"C:\", "D:\", "E:\", "F:\", "G:\", "H:\", "I:\", "J:\", "K:\", "L:\"};
@var $i;
for ($i = 0; $i < 10; $i++)
{
@var $str = $links[$i];
//if folder's name is Local Disk (C)...etc.., set $folder to corresponding root (C:\ for Local Disk (C), D:\ for Local Disk (D)..etc)
if (StrIsEqual($folder, $str))
{
$folder = $roots[$i];
break;
}
}
//Open path $folder
MC.Explorer.Goto SOURCE={$folder}
//Refresh
MC.RunCmd ID=ExplorerPanel.41060;
//Calculate Folders' Sizes
MC.RunCmd ID=ExplorerPanel.51010