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

Page 1 of 2 12 LastLast

  1. Posts : 15
    Windows 7 64bit Ultimate
       #1

    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/Win7 PC.
      My Computer


  2. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #2

    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
    Last edited by Kari; 07 Apr 2012 at 04:56. Reason: Added switch to command line syntax.
      My Computer


  3. Posts : 15
    Windows 7 64bit Ultimate
    Thread Starter
       #3

    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

    Kari said:
    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 Computer


  4. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #4

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

    Kari
      My Computer


  5. Posts : 15
    Windows 7 64bit Ultimate
    Thread Starter
       #5

    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 Computer


  6. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #6

    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
    Last edited by Kari; 07 Apr 2012 at 15:13. Reason: Typo
      My Computer


  7. Posts : 15
    Windows 7 64bit Ultimate
    Thread Starter
       #7

    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.

    Kari said:
    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 Computer


  8. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #8

    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 Computer


  9. Posts : 15
    Windows 7 64bit Ultimate
    Thread Starter
       #9

    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.

    Kari said:
    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 Computer


  10. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #10

    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 Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 08:40.
Find Us