CLSID usage on the cmdline

  • Thread starter Thread starter Tim at this Newsgroup
  • Start date Start date
T

Tim at this Newsgroup

Hello, everyone,

I believe it is possible to change directory and perform other commands from the
command prompt by referring to the CLSID of special folders such as Scheduled
Tasks, Fonts, etc.

The syntax is something like:

c:\> cd ::{xxx-xxx-xxx-xxx}

where xxx-xxx-xxx-xxx is the CLSID (usually found in a registry key)

BUT it is not precisely "::{xxx-xxx-xxx-xxx}".

Can someone please advise - thanks...

Tim.
 
I don't think so. Explorer's command line an handle ths syntax, and windows GUI command line processing can understand it. To force GUI pocessing a a command prompt prepend start to the command line.

explorer ::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}
start ::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}
 
David Candy said:
I don't think so. Explorer's command line an handle ths syntax, and
windows GUI command line processing can understand it. To force GUI
pocessing a a command prompt prepend start to the command line.
explorer ::{D6277990-4C6A-11CF-8D87-00AA0060F5BF} start
::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}

Nice, but who will trust a cryptic number without knowing what it really
refers to ?

I'd prefer a vbs in this case:

cscript.exe //NOLOGO EnumSpecialFolders.vbs

' EnumSpecialFolders.vbs
' from a thread in microsoft.public.scripting.wsh 2004-03-16
'http://groups.google.com/[email protected]
dim WshShell, fso, strPrograms
dim file, Folder

set WshShell = WScript.CreateObject("WScript.Shell")
set fso = WScript.CreateObject("Scripting.FileSystemObject")

for each Folder in WshShell.SpecialFolders
WScript.Echo Folder
next

' Or for single ones with the name
'AllUsersDesktop
'AllUsersStartMenu
'AllUsersPrograms
'AllUsersStartup
'Desktop
'Favorites
'Fonts
'MyDocuments
'NetHood
'PrintHood
'Programs
'Recent
'SendTo
'StartMenu
'Startup
'Templates
Wscript.Echo "Only fonts: " & WshShell.SpecialFolders("Fonts")
 
Back
Top