A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Positioning the Windows Explorer windows



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old February 27th 18, 09:05 PM posted to alt.windows7.general
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Positioning the Windows Explorer windows

Windows 7 Pro

Using a desktop shortcut, is it possible to open a Windows Explorer
window to a specific folder and position on the desktop?

In this specific case, I'd like to have a shortcut open Folder A in a
window that is snapped to the left, and a 2nd shortcut open Folder B
snapped to the right.


--
Ken
Mac OS X 10.11.6
Firefox 53.0.2 (64 bit)
Thunderbird 52.0
"My brain is like lightning, a quick flash
and it's gone!"
Ads
  #2  
Old February 27th 18, 10:44 PM posted to alt.windows7.general
Good Guy[_2_]
external usenet poster
 
Posts: 3,354
Default Positioning the Windows Explorer windows

On 27/02/2018 20:05, Ken Springer wrote:
Windows 7 Pro

Using a desktop shortcut, is it possible to open a Windows Explorer
window to a specific folder

http://www.helpwithwindows.com/Windows7/Open-Windows-Explorer-To-Specific-Folder.html

and position on the desktop?


what the **** is this?






--
With over 600 million devices now running Windows 10, customer
satisfaction is higher than any previous version of windows.

  #3  
Old February 27th 18, 10:54 PM posted to alt.windows7.general
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Positioning the Windows Explorer windows

On 2/27/18 2:44 PM, Good Guy wrote:
On 27/02/2018 20:05, Ken Springer wrote:
Windows 7 Pro

Using a desktop shortcut, is it possible to open a Windows Explorer
window to a specific folder

http://www.helpwithwindows.com/Windows7/Open-Windows-Explorer-To-Specific-Folder.html

and position on the desktop?


what the **** is this?


It's for idiots like you that can't/won't/don't read the full question.


--
Ken
Mac OS X 10.11.6
Firefox 53.0.2 (64 bit)
Thunderbird 52.0
"My brain is like lightning, a quick flash
and it's gone!"
  #4  
Old February 28th 18, 01:09 AM posted to alt.windows7.general
Mayayana
external usenet poster
 
Posts: 6,438
Default Positioning the Windows Explorer windows

"Ken Springer" wrote

| Using a desktop shortcut, is it possible to open a Windows Explorer
| window to a specific folder and position on the desktop?
|

I think you need to take up scripting.
Things like that are not too difficult, but
it's not a one-liner. The shortcut would need
to call, or be, something like a script that
opens the folder and positions it. It's basically
automating the functionality of Explorer.

If it can be done in a simpler way I don't
know what that is.


  #5  
Old February 28th 18, 04:37 AM posted to alt.windows7.general
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Positioning the Windows Explorer windows

On 2/27/18 5:09 PM, Mayayana wrote:
"Ken Springer" wrote

| Using a desktop shortcut, is it possible to open a Windows Explorer
| window to a specific folder and position on the desktop?
|

I think you need to take up scripting.
Things like that are not too difficult, but
it's not a one-liner. The shortcut would need
to call, or be, something like a script that
opens the folder and positions it. It's basically
automating the functionality of Explorer.

If it can be done in a simpler way I don't
know what that is.


This isn't for me, for a guy that's mostly computer illiterate, but
wants to put his CD collection on a hard drive.

One of those that knows what they want to do, but have no clue as to how
to do it.



--
Ken
Mac OS X 10.11.6
Firefox 53.0.2 (64 bit)
Thunderbird 52.0
"My brain is like lightning, a quick flash
and it's gone!"
  #6  
Old February 28th 18, 05:08 AM posted to alt.windows7.general
B00ze
external usenet poster
 
Posts: 472
Default Positioning the Windows Explorer windows

On 2018-02-27 15:05, Ken Springer wrote:

Windows 7 Pro

Using a desktop shortcut, is it possible to open a Windows Explorer
window to a specific folder and position on the desktop?

In this specific case, I'd like to have a shortcut open Folder A in a
window that is snapped to the left, and a 2nd shortcut open Folder B
snapped to the right.


/e,path will open to the folder you want, for example make a shortcut to
C:\WINDOWS\EXPLORER.EXE /e,D:\ will open D: drive.

But you cannot position windows without some tool; maybe AutoIt does it?
Needs scripting...

Regards,

--
! _\|/_ Sylvain /
! (o o) Memberavid-Suzuki-Fdn/EFF/Red+Cross/SPCA/Planetary-Society
oO-( )-Oo I made it foolproof, but they're making better fools.

  #7  
Old February 28th 18, 09:04 AM posted to alt.windows7.general
Zaidy036[_6_]
external usenet poster
 
Posts: 79
Default Positioning the Windows Explorer windows

Ken Springer wrote:
Windows 7 Pro

Using a desktop shortcut, is it possible to open a Windows Explorer
window to a specific folder and position on the desktop?

In this specific case, I'd like to have a shortcut open Folder A in a
window that is snapped to the left, and a 2nd shortcut open Folder B
snapped to the right.


Nirsoft has commands to size and position windows.
https://www.nirsoft.net/
Make two batch files each with location you want. Place shortcuts on
desktop and drop folder into it.
--
Zaidy036
  #8  
Old February 28th 18, 09:13 AM posted to alt.windows7.general
JJ[_11_]
external usenet poster
 
Posts: 744
Default Positioning the Windows Explorer windows

On Tue, 27 Feb 2018 13:05:55 -0700, Ken Springer wrote:
Windows 7 Pro

Using a desktop shortcut, is it possible to open a Windows Explorer
window to a specific folder and position on the desktop?

In this specific case, I'd like to have a shortcut open Folder A in a
window that is snapped to the left, and a 2nd shortcut open Folder B
snapped to the right.


Interresting idea. Use below VBScript.

https://pastebin.com/BnizXHvf

Usage e.g.

explore.vbs /path "d:\my data" /left 0 /top 0 /width 800 /height 600

Running the script without any parameter will show the usage help.
  #9  
Old February 28th 18, 09:20 AM posted to alt.windows7.general
JJ[_11_]
external usenet poster
 
Posts: 744
Default Positioning the Windows Explorer windows

On Wed, 28 Feb 2018 15:13:57 +0700, JJ wrote:
On Tue, 27 Feb 2018 13:05:55 -0700, Ken Springer wrote:
Windows 7 Pro

Using a desktop shortcut, is it possible to open a Windows Explorer
window to a specific folder and position on the desktop?

In this specific case, I'd like to have a shortcut open Folder A in a
window that is snapped to the left, and a 2nd shortcut open Folder B
snapped to the right.


Interresting idea. Use below VBScript.

https://pastebin.com/BnizXHvf

Usage e.g.

explore.vbs /path "d:\my data" /left 0 /top 0 /width 800 /height 600

Running the script without any parameter will show the usage help.


Oops, it seems that the usage help is bugged. Use below instead.

https://pastebin.com/S4EJWxuF

Since the usage help is pretty long, it won't fit onto the message dialog
(when the script is executed by double clicking the VBS file, or is run
using WSCRIPT.EXE). To see the full help, run it from the command line using
CSCRIPT.EXE.
  #10  
Old February 28th 18, 09:25 AM posted to alt.windows7.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Positioning the Windows Explorer windows

Zaidy036 wrote:
Ken Springer wrote:
Windows 7 Pro

Using a desktop shortcut, is it possible to open a Windows Explorer
window to a specific folder and position on the desktop?

In this specific case, I'd like to have a shortcut open Folder A in a
window that is snapped to the left, and a 2nd shortcut open Folder B
snapped to the right.


Nirsoft has commands to size and position windows.
https://www.nirsoft.net/
Make two batch files each with location you want. Place shortcuts on
desktop and drop folder into it.


Nircmd or some other one ?

http://nircmd.nirsoft.net/win.html

I couldn't figure out how the "win" commands worked.
The example here implies the last window opened is the
one that has the command applied to it ? They don't
seem to be "finding" anything.

https://stackoverflow.com/questions/...-of-the-window

Explorer /n,c:\develop\jboss-4.2.3.GA\server\default\deploy
nircmd wait 1000 win setsize ititle "something" x, y, width, height

Paul
  #11  
Old February 28th 18, 12:36 PM posted to alt.windows7.general
Zaidy036[_6_]
external usenet poster
 
Posts: 79
Default Positioning the Windows Explorer windows

Paul wrote:
Zaidy036 wrote:
Ken Springer wrote:
Windows 7 Pro

Using a desktop shortcut, is it possible to open a Windows Explorer
window to a specific folder and position on the desktop?

In this specific case, I'd like to have a shortcut open Folder A in a
window that is snapped to the left, and a 2nd shortcut open Folder B
snapped to the right.


Nirsoft has commands to size and position windows.
https://www.nirsoft.net/
Make two batch files each with location you want. Place shortcuts on
desktop and drop folder into it.


Nircmd or some other one ?

http://nircmd.nirsoft.net/win.html

I couldn't figure out how the "win" commands worked.
The example here implies the last window opened is the
one that has the command applied to it ? They don't
seem to be "finding" anything.

https://stackoverflow.com/questions/...-of-the-window

Explorer /n,c:\develop\jboss-4.2.3.GA\server\default\deploy
nircmd wait 1000 win setsize ititle "something" x, y, width, height

Paul


Wish I could help better but I am on iPad and not home to refer to my
batches.

“something” is some text included in the name of the cmd window you are
trying to adjust. Run you batch and see what it says.

X and y are top left corner in pixels, of new location and accepts negative
numbers to move to a second monitor if you have one. Width and height are
also in pixels. I would test without wait and just have batch setsize and
pause & exit


--
Zaidy036
  #12  
Old February 28th 18, 03:55 PM posted to alt.windows7.general
Mayayana
external usenet poster
 
Posts: 6,438
Default Positioning the Windows Explorer windows

"Ken Springer" wrote

| This isn't for me, for a guy that's mostly computer illiterate, but
| wants to put his CD collection on a hard drive.
|

Yeah, yeah. Sure, sure.

This should do it, though each version of
Windows has its quirks. Paste the code below into Notepad
and save as opener.vbs The 2 paths, Fol1 and Fol2, have
to be edited. Likwise, diesred width and height of folder
windows should be edited. I set them to 600x600.

This stuff is very funky. Microsoft have made a mess
of "shell" (GUI) functionality. It's quirky, partial, semi-
documented, and changes with different Windows
versions. Note below that I'm actually creating IE
windows. Since Active Desktop (Win98), a folder window
is officially an IE window.... except that it actually isn't...
though it actually used to be....
Long story.

Since a folder window is IE I can use IE to set the
size and position and location. Since it's actually not IE
I had to load about:blank into a real IE instance in order
to find the screen width.

This will all be on the test.

.... And I don't know whether any of this might be
a problem for those who like to run in lackey mode
with their hands tied by UAC. Your friend will just
have to test it.

'--------- begin code --------------------
Dim Fol1, Fol2, IE, ScrWidth

Fol1 = "C:\Windows\Desktop\Folder1"
Fol2 = "C:\Windows\Desktop\Folder2"
On Error Resume Next

Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "about:blank"
While IE.ReadyState 4
Wend
ScrWidth = IE.document.parentWindow.screen.availWidth
IE.Quit
Set IE = Nothing

Set IE = CreateObject("InternetExplorer.Application")
With IE
.Height = 600
.Width = 600
.Left = 0
.top = 100
.Navigate Fol1
.visible = True
End With
Set IE = Nothing

Set IE = CreateObject("InternetExplorer.Application")
With IE
.Height = 600
.Width = 600
.Left = ScrWidth - (.width + 50)
.top = 100
.Navigate Fol2
.visible = True
End With

Set IE = Nothing

'------------- end of code ----------------


  #13  
Old February 28th 18, 05:05 PM posted to alt.windows7.general
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Positioning the Windows Explorer windows

On 2/28/18 7:55 AM, Mayayana wrote:
"Ken Springer" wrote

| This isn't for me, for a guy that's mostly computer illiterate, but
| wants to put his CD collection on a hard drive.
|

Yeah, yeah. Sure, sure.


Actually, it is. G

This is something I would never do for me. I have CDs, but I don't care
if they are ripped to my HD.

For whatever reason, he bought a Pono Music "box". It was backed by
Neil Young, and appears to be defunct. As a result, I've not been able
to find any software for it online. It seems you can buy the original
software, but apparently it didn't always work.

He wanted to digitize his entire CD collection, put the files on the
Pono and an external HD. But he had no clue that the Pono he bought can
only hold 60 GB of data.

The man is very knowledgeable, but he seems to have a mental block, he
says he can't learn. He's dyslexic, and I suspect he was told all the
"You're stupid" kind of stuff when he was growing up, since dyslexia
wasn't that well understood.

But he can learn, he just has to do it slow, and in his own way. I've
been pushing him, and he's "getting it", at least the things associated
with just getting the discs ripped.

He had a Vista laptop, but left it with someone somewhere to do
something with it, I'm not sure what that was, but now can't even get a
response from this guy.

So I gave him options of what to buy, and as I expected, bought the
cheapest option. I wanted him to buy new, but that didn't fly.

So, I'm fixing the things wrong with the refurb laptop he bought.
Missing drivers, HP Connection Manager turned off, etc. Installing
software, and teaching him how to rip the CDs with Media Player. And,
prefiguring the rippng process so it essentially becomes a "monkey see
monkey do" process.

Originally, ripping music was all the computer was going to be used for.
But we've already added Gmail, via a shortcut, and a basic free office
suite.

And I got him to add internet service to his house.

As he settles in with it, I'm sure there will be more that he'll ask
about. I'm hoping he begins to browse the web for the solutions he
wants. At some point, I'm going to push him to take some Windows 7
basic classes online.

The only part of the "system" as he wants it that I haven't done, is
getting 2 Windows Explorer windows to
open where he would like them.

I think he's at the point now where he has to get comfortable with what
has been done, before going any further with anything additional such as
scripting. If that were to go belly up, I don't think he would be able
to handle it at this point. Maybe, some time in the future.

snip

I snipped your script, thanks for it. ATM, all my printers are down,
but a new one is on the way. Then I'll print your script, and a couple
others from this thread, for possible later use.

--
Ken
Mac OS X 10.11.6
Firefox 53.0.2 (64 bit)
Thunderbird 52.0
"My brain is like lightning, a quick flash
and it's gone!"
  #14  
Old February 28th 18, 05:09 PM posted to alt.windows7.general
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Positioning the Windows Explorer windows

On 2/27/18 9:08 PM, B00ze wrote:
On 2018-02-27 15:05, Ken Springer wrote:

Windows 7 Pro

Using a desktop shortcut, is it possible to open a Windows Explorer
window to a specific folder and position on the desktop?

In this specific case, I'd like to have a shortcut open Folder A in a
window that is snapped to the left, and a 2nd shortcut open Folder B
snapped to the right.


/e,path will open to the folder you want, for example make a shortcut to
C:\WINDOWS\EXPLORER.EXE /e,D:\ will open D: drive.


Easier than that. :-) Open Windows Explorer, in the navigation pane,
navigate to the folder you want to open. Highlight, right click, Send
to desktop. Done.

But you cannot position windows without some tool; maybe AutoIt does it?
Needs scripting...


Scripting is out of the picture at this point.


--
Ken
Mac OS X 10.11.6
Firefox 53.0.2 (64 bit)
Thunderbird 52.0
"My brain is like lightning, a quick flash
and it's gone!"
  #15  
Old February 28th 18, 05:20 PM posted to alt.windows7.general
Ken Springer[_2_]
external usenet poster
 
Posts: 3,817
Default Positioning the Windows Explorer windows

On 2/28/18 1:25 AM, Paul wrote:
The example here implies the last window opened is the
one that has the command applied to it ?


I think it's the last windows that's closed.

I just opened 4 Windows Explorer windows, scattered them about the
screen and made each one a different size. Then closed them all.
Opened a new window, it opened at the size and position of the last
window closed.

I did not do anything but this one test, so the action may fail if done
another way.

And it does fail, apparently, if your window is snapped to either or
both edges. I snapped 2 Windows Explorer to each side of the screen.
Closed them. Opened a new window.

The new window opened in the center of the monitor, some percentage
smaller than full size, and apparently with an aspect ratio that matches
the monitor.

As with Mayayana's script, this post is marked for printing later.

--
Ken
Mac OS X 10.11.6
Firefox 53.0.2 (64 bit)
Thunderbird 52.0
"My brain is like lightning, a quick flash
and it's gone!"
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 01:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 PCbanter.
The comments are property of their posters.