Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Align 2 window left right

$
0
0

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



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>