none
Align 2 window left right RRS feed

  • Question

  • Hi folks,

    I had the perfect solution in Win XP but since we are upgrading to Win7, I can't find a solution.

    I need 1 explorer window on the left and one on the right.

    The user will then move data from one window to the other.

    Requirement:

    - User can't navigate (fixed to a specific directory)

    - simple file list on both windows.

    1 window is always a directory on the harddrive. The other

    either a shared folder or an ftp folder.

    Here is the VBScript I used in WinXP

    root1 = "C:¥"
    root2 = "D:¥"
    
    Dim objExplorer
    Dim objExplorer2
    
    Set objExplorer = CreateObject("InternetExplorer.Application")
    objExplorer.AddressBar = 0
    objExplorer.Visible = 1
    objExplorer.ToolBar = 0
    objExplorer.StatusBar = 0
    objExplorer.Left = 0
    objExplorer.Top = 0
    objExplorer.Width = 640
    objExplorer.Height = 1024
    objExplorer.Navigate(root2)
    
    Set objExplorer2 = CreateObject("InternetExplorer.Application")
    objExplorer2.AddressBar = 0
    objExplorer2.Visible = 1
    objExplorer2.ToolBar = 0
    objExplorer2.StatusBar = 0
    objExplorer2.Left = 640
    objExplorer2.Top = 0
    objExplorer2.Width = 640
    objExplorer2.Height = 1024
    objExplorer2.Navigate(root1)

    Those working with XP may use this code (^-^)

    Anyway, I'd like to arrange both windows half left/half right!

    (BTW, is there a command to use win7 snap function?

    Cheers


    • Edited by OemoromeO Tuesday, February 18, 2014 5:00 PM
    Tuesday, February 18, 2014 4:59 PM

Answers

  • Just open both and execute the keyboard "tile" command.  They will align full left and right.

    ¯\_(ツ)_/¯

    • Marked as answer by OemoromeO Wednesday, February 19, 2014 2:57 PM
    Tuesday, February 18, 2014 5:56 PM
  •  set objShell = CreateObject("shell.application")
    objShell.ToggleDesktop
    objShell.TileVertically

    ¯\_(ツ)_/¯


    • Edited by jrv Wednesday, February 19, 2014 3:23 PM
    • Marked as answer by OemoromeO Thursday, February 20, 2014 12:53 PM
    Wednesday, February 19, 2014 3:23 PM

All replies

  • Just open both and execute the keyboard "tile" command.  They will align full left and right.

    ¯\_(ツ)_/¯

    • Marked as answer by OemoromeO Wednesday, February 19, 2014 2:57 PM
    Tuesday, February 18, 2014 5:56 PM
  • OK, that is an answer :-)

    But I was rather hoping for a scripting solution - maybe with PowerShell - where I

    can eventually even change the alignment or size of the windows.

    Meanwhile, I'll give it a try but have to google (again) for the right commands :-(

    If anyone already has an example, please share it with us.

    And if I 'll find it first... then I 'll mark it as my own answer to the question, lol.

    Wednesday, February 19, 2014 3:18 PM
  •  set objShell = CreateObject("shell.application")
    objShell.ToggleDesktop
    objShell.TileVertically

    ¯\_(ツ)_/¯


    • Edited by jrv Wednesday, February 19, 2014 3:23 PM
    • Marked as answer by OemoromeO Thursday, February 20, 2014 12:53 PM
    Wednesday, February 19, 2014 3:23 PM
  • Also:

    $ie = new-object -comobject InternetExplorer.Application 
    $ie.visible = $true 
     
    $ie.top = 200; $ie.width = 900; $ie.height = 900 ; $ie.Left = 100 
     
    $ie.navigate("http://google.com") 
    


    ¯\_(ツ)_/¯

    • Marked as answer by OemoromeO Thursday, February 20, 2014 12:53 PM
    • Unmarked as answer by OemoromeO Thursday, February 20, 2014 12:55 PM
    Wednesday, February 19, 2014 3:25 PM
  • Also:

    $ie = new-object -comobject InternetExplorer.Application 
    $ie.visible = $true 
     
    $ie.top = 200; $ie.width = 900; $ie.height = 900 ; $ie.Left = 100 
     
    $ie.navigate("http://google.com") 


    ¯\_(ツ)_/¯

    Just by looking at it I can tell that it's similar to my solution. Have you tried to navigate to a folder? You'd be surprised...

    Windows 7 for what I can see automatically switches to Explorer and does not show the files - as it used to be in WindowsXP - within the IE Window.

    It therefore resets to the default Explorer window, so I need to set the Explorer settings instead. There might be a simple Registry solution as well.


    • Edited by OemoromeO Thursday, February 20, 2014 1:08 PM
    Thursday, February 20, 2014 1:08 PM
  • You cannot navigate to a folder with IE.  IE cannot display local files.


    ¯\_(ツ)_/¯

    Thursday, February 20, 2014 1:12 PM