Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How can I set this via command-line or registry?

04 Apr 2012   #1

Windows 7 64bit Ultimate
 
 
How can I set this via command-line or registry?

How can I set this via command-line or registry? I need a way to automatically launch "Explorer c:\folder\myfolder" with a view appropriate for long filenames on any Windows Vista/Windows 7 PC.


My System SpecsSystem Spec
.

05 Apr 2012   #2

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

Type c:\windows\explorer.exe X:\folder\subfolder /e on Notepad, save as a batch file with .bat extension. Copy file to C:\Users\Your_Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup to open X:\Folder\Subfolder in Explorer in Details view every time you log in to your user account, or to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp if you want this to happen on all user accounts.

Kari
My System SpecsSystem Spec
05 Apr 2012   #3

Windows 7 64bit Ultimate
 
 

Hi Kari, I need to open a Windows Explorer windows in "List View" or at at least in Details view with automatic resize of all columns from command line. The below solution doesn't have anything to do with displaying long filenames.

Thanks,
MKANET

Quote   Quote: Originally Posted by Kari View Post
Type c:\windows\explorer.exe X:\folder\subfolder on Notepad, save as a batch file with .bat extension. Copy file to C:\Users\Your_Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup to open X:\Folder\Subfolder in Explorer every time you log in to your user account, or to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp if you want this to happen on all user accounts.

Kari
My System SpecsSystem Spec
.


07 Apr 2012   #4

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

Seems I forgot the /e switch which opens Explorer in Details view. Post edited.

Kari
My System SpecsSystem Spec
07 Apr 2012   #5

Windows 7 64bit Ultimate
 
 

I know I asked this before, but I guess there's no way to do it... Either to open Explorer in Details View with dynamically adjustable column width from commandline. or...... open in List view. So far everything I've tried requires keypresses from the user.
My System SpecsSystem Spec
07 Apr 2012   #6

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

This does not require a keypress. A simple one-line batch in Startup is all it takes.

As far as I know there's no way to determine column width from command line. So if it is elementary to show Name column as wide as the longest file name, you need to right click the column title and select Size Column to Fit. If all columns need to be fit, select Size All Columns to Fit.

Kari
My System SpecsSystem Spec
07 Apr 2012   #7

Windows 7 64bit Ultimate
 
 

Kari, not too many people know this, but Windows does has the ability to dynamically adjust column width in Explorer. In fact, there's even a hotkey for this while in Details view. It doesn't even make any sense to try to predict a fixed width size.

How to open Windows Explorer with auto column width:

Just open explorer in details view....
1. From the command prompt type the following to open current directory: explorer.exe /e, .

2. Press the following key combiation: CTRL + NumPad + (meaning that press CTRL and the + sign on the Numeric Keypad only)

You can also do this by making the change without using the hotkley:

My question was how to do this without manually doing keypresses or manually changing the settings; or, a simple command line argument to switch to list view (similar to the /E switch for Details view). So far the best I can do is use a third party tool to send the CTRL + NumPad + combo to the Window. It does work like that, but, would much rather have a way to do it natively.

Quote   Quote: Originally Posted by Kari View Post
This does not require a keypress. A simple one-line batch in Startup is all it takes.

As far as I know there's no way to determine column width from command line. So if is elementary to show Name column as wide as the longest file name, you need to right click the column title and select Size Column to Fit. If all columns need to be fit, select Size All Columns to Fit.

Kari
My System SpecsSystem Spec
07 Apr 2012   #8

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

As I said, I do not know nor do I believe there's a way to set column width from command line. You solution above is exactly as mine before that with one exception: we both open Explorer in Details view and then set the width, me by right clicking the column title to get it really fixed, or you pressing the key combo wishing you get it right.

Kari
My System SpecsSystem Spec
07 Apr 2012   #9

Windows 7 64bit Ultimate
 
 

Actually, this is what you said.

"As far as I know there's no way to determine column width from command line. "

"Determining the column width" and "changing a setting to dynamic width" are two completely different things. But, regardless it doesnt look like there's a way to do it without some help.

Quote   Quote: Originally Posted by Kari View Post
As I said, I do not know nor do I believe there's a way to set column width from command line. You solution above is exactly as mine before that with one exception: we both open Explorer in Details view and then set the width, me by right clicking the column title to get it really fixed, or you pressing the key combo wishing you get it right.

Kari
My System SpecsSystem Spec
07 Apr 2012   #10

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

I must be stupid. I was really trying to help you, doing tests, searching and researching. For what? It seems for you to have chance to split hairs and argue about the syntax of my posts?

Let's try other in words, so you can play with them:
- There's no way to determine column width from command line
- You can not set column width dynamic from command line
- You can not change column width from command line

There you go. You choose, I know you will play with my words whatever I say.

I was not awaiting any thanks, you clearly are one that does not feel comfortable to thank. I do this voluntary on my own time, for fun and pleasure. You surely take the fun out of it.

Kari
My System SpecsSystem Spec
Reply

 How can I set this via command-line or registry?




Thread Tools



Similar help and support threads for2: How can I set this via command-line or registry?
Thread Forum
Solved backup registry in command line Backup and Restore
backup registry in command line Backup and Restore
Solved How to "Duplicate These Displays" via command line or registry? Customization
add folders in indexing options using registry or command line? Performance & Maintenance
Registry Editing from Command Line General Discussion
Command line Registry Permission General Discussion
Command Line General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 11:47 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33