コード例 #1
0
ファイル: OpenExpression.cs プロジェクト: alex-teren/Shell
        public override void Interpret(InterpreterContext context)
        {
            String     path = context.GetInput().Substring(5);
            IShellItem item = GetItem(path);

            if (item != null)
            {
                item.Open();
            }
            else
            {
                MessageBox.Show("Can not find file");
            }
        }
コード例 #2
0
        public override void Interpret(InterpreterContext context)
        {
            String     path = context.GetInput().Substring(7);
            IShellItem item = GetItem(path);

            if (item != null)
            {
                item.DeleteItself();
                MessageBox.Show("File " + item.Name + " has been deleted");
            }
            else
            {
                MessageBox.Show("Can not find the file");
            }
        }