Plex 2E

  • 1.  Windows Explorer in CA PLEX NET Client

    Posted Jan 27, 2016 09:54 AM

    Hello,

     

    I am trying to find an approach to control Windows Explorer from a .NET Plex Client.

     

    There are no particular requirements so I could either embed Windows Explorer in a .NET Client UI or launch/close Windows Explorer from the client via Source Code objects.


    Looking at previous solutions I found the following inquiry that hasn't received a response:

     

    Windows Explorer ActiveXControl

     

    Any suggestion?

     

    Regards and thanks in advance,

     

    Lucio

    http://www.plex-world.com



  • 2.  Re: Windows Explorer in CA PLEX NET Client
    Best Answer

    Posted Jan 27, 2016 12:34 PM


  • 3.  Re: Windows Explorer in CA PLEX NET Client

    Posted Jan 27, 2016 12:40 PM

    Thanks George for this recommendation.

     

    1. Do you have any example of its use?
    2. Are there any royalties with it?

     

    Thanks,

     

    Lucio

    http://www.plex-world.com



  • 4.  Re: Windows Explorer in CA PLEX NET Client

    Posted Jan 27, 2016 02:02 PM

    yeah pull the other one Lucio, where am i going to find a WPF plex site!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

     

    Cant even find a winc site to work at..



  • 5.  Re: Windows Explorer in CA PLEX NET Client

    Posted Feb 05, 2016 02:32 PM

    Lucio and I worked on a windows explorer solution and I have some working c# source code that lets you open and close a windows explorer window to a passed in folder name

    *******************

    Starting explorer

    ********************

    using System;

    using System.Diagnostics;

    using System.ComponentModel;

    //open windows explorer to the folder passed in  - the folder has to exist

    string folderToOpen = &(1:).Value;

    //define explorer.exe folder

    string windir = Environment.GetEnvironmentVariable("WINDIR");

    System.Diagnostics.Process explorerProcess = new System.Diagnostics.Process();

    explorerProcess.StartInfo.FileName = windir + @"\explorer.exe";

    //

    explorerProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;

    explorerProcess.StartInfo.Arguments = folderToOpen;

    explorerProcess.StartInfo.UseShellExecute = false;

    explorerProcess.Start();

    // return current window title - may or may not be useful

    string title = explorerProcess.MainWindowTitle;

    &(2:).Value = title;

     

    *******************

    Ending Explorer

    ******************

    using System;

    using System.Diagnostics;

    using System.ComponentModel;

     

     

    string explorerDirectory = &(1:).Value;

    //get all other (possible) running instances of explorer

      Process[] processes = Process.GetProcessesByName("explorer");

            foreach (Process explorerProcess in processes)

            {

    //the MainWindowTitle is the folder/directory the ExplorerWindow has opened    

                    string title = explorerProcess.MainWindowTitle;

      if (explorerDirectory == title)

      {

      explorerProcess.Kill();                        

      }

            }