The Shell.Application object

Contains the object's Application object. This property is read-only.

Syntax 
      Set objShell = CreateObject("Shell.Application")

Methods
   .BrowseForFolder 	'Display a dialog box to select a folder.
   .CanStartStopService("ServiceName")   'Can the current user start/stop the named service?
   .CascadeWindows      'Arrange app windows.
   .EjectPC             'Eject PC from a docking station.
   .ExpandEnvironmentStrings 'Expand a Windows environment variable.
   .Explore(FolderPath) 'Open a folder.
   .FileRun             'Open the File-run dialogue.
   .GetSystemInformation("PhysicalMemoryInstalled")  'Physical memory installed, in bytes.
   .IsServiceRunning("ServiceName")  'Check if a Windows service is running.
   .MinimizeAll         'Minimize everything.
   .NameSpace("C:\\")   'Create an object reference to a folder.
   .ServiceStart("ServiceName", true)  'Start a windows service.
   .ServiceStop("ServiceName", true)   'Stop a windows service.
   .SetTime             'Open the set time GUI.
   .ShellExecute        'Run a script or application.
   .ShutdownWindows
   .TileHorizontally    'Tile app windows.
   .TileVertically      'Tile app windows.
   .ToggleDesktop       'Show/Hide Desktop.
   .TrayProperties      'Display the Taskbar/Start Menu Properties.
   .UndoMinimizeAll     'Un-Minimize everything.
    Some additional methods can be found here.

The Shell.Application property returns the automation object supported by the application that contains the WebBrowser control, if that object is accessible. Otherwise, this property returns the WebBrowser control's automation object.

Use this property with the Set and CreateObject commands or with the GetObject command.

“It is possible to store the mind with a million facts and still be entirely uneducated” ~ Alec Bourne

Related VBScript commands

Wscript.Shell objects/methods.


 
Copyright © 1999-2025 windevcluster.com
Some rights reserved