Welcome to shell: revealed Sign in | Join | Help
in Search

SCF (Windows Explorer Shell Command File)

Last post 10-29-2008, 6:56 PM by cr4ckerK9. 3 replies.
Sort Posts: Previous Next
  •  12-01-2007, 8:52 PM 7604

    SCF (Windows Explorer Shell Command File)

    I was able only two Windows XP files with this format: “Minimize all windows” and “View Channels”:

    Minimize all windows.scf:
    |--------------------------------------------------|
    [Shell]
    Command=2
    IconFile=explorer.exe,3

    [Taskbar]
    Command=ToggleDesktop

    |--------------------------------------------------|

    View Channels.scf:
    |--------------------------------------------------|
    [Shell]
    Command=3
    IconFile=shdocvw.dll,-118

    [IE]
    Command=Channels

    |--------------------------------------------------|


    Format of this files looks like INI, executed in Windows files run system processes.
    I want to learn in details of SCF.

    Thanks.

  •  01-04-2008, 3:14 AM 7655 in reply to 7604

    Explorer Shell Command File - what are the possibilities?

     I had been interested in this long ago, but it cropped up again on TechRepulic, and I see that this question is asked
    and not answered all over the 'net. It is just one of those fabulously undocumented things that folks who code don't
    need, and most users won't bother with. It is also probably of limited functionality, yet I would still like to know what
    commands are possible within an SCF myself.

    Here is one you missed, Stupid Winuser:
     

    explorer.scf   (Find the Target of the Windows Explorer shortcut on the Start Menu)

    [Shell]
    Command=2
    IconFile=explorer.exe,1

    [Taskbar]
    Command=Explorer

    _______________________________

    What I can tell you:

    IconFile -  You can reference any icon you like here. You can use an ICO that you make yourself, or point to one inside any file that contains icons.
    In the case above, the second icon in explorer.exe is used (numbering starts at 0). 

    Command=Explorer -  Use any of the command line options to customize how explorer opens. Look it up in a Resource Kit or on microsoft.com.
    Actually, look here:  http://www.scribd.com/doc/43384/Command-Line-switches-for-Windows-Explorer

    It took me a while to find, but it lists some things I vaguely remember, but don't seem to be shown anywhere else any longer (IDLIST, passing CLSIDs).  If you want to do specialized explorer commands and change the icon, it is a lot easier to do this with a regular Shortcut, as you can pick the icon in the GUI without having to figure out the icon position number in a dll, exe, etc.

    Other stuff:

    Some files involved:
    explorer.exe
    shdocvw.dll
    shdoc401.dll     SHCmd (InProcServer32)>>{57651662-CE3E-11D0-8D77-00C04FC99D61} CmdFileIcon
    shell32.dll


     Any functionality in the SCF filetype is probably better exposed in the various Windows scripting formats: WindowsScript, VBScript, CScript, JScript, or whatever. I don't really know anything about this stuff. 

    Maybe someone can clue us in. :) 

  •  09-01-2008, 2:03 PM 8080 in reply to 7655

    Re: Explorer Shell Command File - what are the possibilities?

    Hi everybody,
    Normally I speak french, so, don't blame me on my english,Smile

    Im very interrested on this subject , and I wonder what is "Command = 2". Its necessary but I dont know his utility. Is that the number of the command you execute in your file ?

    thanks Wink
  •  10-29-2008, 6:56 PM 8154 in reply to 7604

    Re: SCF (Windows Explorer Shell Command File)

    Show Desktop.scf

     -------------------------------------------------------

    [Shell]
    Command=2
    IconFile=explorer.exe,3
    [Taskbar]
    Command=ToggleDesktop

     -------------------------------------------------------

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems © 2006 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement.