import { WshEnvironment } from './wsh-environment'; /** * Provides access to the native Windows shell. * * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/aew9yb99(v=vs.84)?redirectedfrom=MSDN */ export declare class WshShell { /** * Retrieves or changes the current active directory. * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/3cc5edzd%28v%3dvs.84%29 */ CurrentDirectory: string; /** * Returns the WshEnvironment object (a collection of environment variables). * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/fd7hxfdd%28v%3dvs.84%29 */ Environment: WshEnvironment; /** * Returns a SpecialFolders object (a collection of special folders). * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/0ea7b5xe%28v%3dvs.84%29 * @ignore */ SpecialFolders: {}; /** * Activates an application window. * * @param id Specifies which application to activate. This can be a string containing the title of the application (as it appears in the title bar) or the application's Process ID. * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/wzcddbek%28v%3dvs.84%29 */ AppActivate(id: string | number): void; /** * Creates a new shortcut, or opens an existing shortcut. * @param strPathname String value indicating the pathname of the shortcut to create * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/xsy6k3ys%28v%3dvs.84%29 */ CreateShortcut(strPathname: string): void; /** * Runs an application in a child command-shell, providing access to the StdIn/StdOut/StdErr streams. * @param strCommand String value indicating the command line used to run the script. The command line should appear exactly as it would if you typed it at the command prompt. * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/ateytk4a%28v%3dvs.84%29 */ Exec(strCommand: string): void; /** * Returns an environment variable's expanded value. * @param strString String value indicating the name of the environment variable you want to expand. * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/dy8116cf%28v%3dvs.84%29 */ ExpandEnvironmentStrings(strString: string): void; /** * Adds an event entry to a log file. * @param intType Integer value representing the event type. * @param strMessage String value containing the log entry text. * @param strTarget String value indicating the name of the computer system where the event log is stored (the default is the local computer system). Applies to Windows NT/2000 only. * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/b4ce6by3%28v%3dvs.84%29 */ LogEvent(intType: number, strMessage: string, strTarget?: string): void; /** * Displays text in a pop-up message box. * @param strText String value that contains the text you want to appear in the pop-up message box. * @param nSecondsToWait Numeric value indicating the maximum number of seconds you want the pop-up message box displayed. If nSecondsToWait is zero (the default), the pop-up message box remains visible until closed by the user. * @param strTitle String value that contains the text you want to appear as the title of the pop-up message box. * @param nType Numeric value indicating the type of buttons and icons you want in the pop-up message box. These determine how the message box is used. * @param intButton Integer value indicating the number of the button the user clicked to dismiss the message box. This is the value returned by the Popup method. * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/x83z1d9f%28v%3dvs.84%29 */ Popup(strText: string, nSecondsToWait?: number, strTitle?: string, nType?: number, intButton?: number): void; /** * Deletes a key or one of its values from the registry. * @param strName String value indicating the name of the registry key or key value you want to delete. * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/293bt9hh%28v%3dvs.84%29 */ RegDelete(strName: string): void; /** * Returns the value of a key or value-name from the registry. * @param strName String value indicating the key or value-name whose value you want. * @return Read value * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/x05fawxd%28v%3dvs.84%29 */ RegRead(strName: string): any; /** * Creates a new key, adds another value-name to an existing key (and assigns it a value), or changes the value of an existing value-name. * @param strName String value indicating the key-name, value-name, or value you want to create, add, or change. * @param anyValue The name of the new key you want to create, the name of the value you want to add to an existing key, or the new value you want to assign to an existing value-name. * @param strType String value indicating the value's data type. * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/yfdfhz1b%28v%3dvs.84%29 */ RegWrite(strName: string, anyValue: any, strType?: string): void; /** * Runs a program in a new process. * @param strCommand String value indicating the command line you want to run. You must include any parameters you want to pass to the executable file. * @param intWindowStyle Integer value indicating the appearance of the program's window. Note that not all programs make use of this information. * @param bWaitOnReturn Boolean value indicating whether the script should wait for the program to finish executing before continuing to the next statement in your script. If set to true, script execution halts until the program finishes, and Run returns any error code returned by the program. If set to false (the default), the Run method returns immediately after starting the program, automatically returning 0 (not to be interpreted as an error code). * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/d5fk67ky%28v%3dvs.84%29 */ Run(strCommand: string, intWindowStyle?: number, bWaitOnReturn?: boolean): void; /** * Sends one or more keystrokes to the active window (as if typed on the keyboard). * @param s String value indicating the keystroke(s) you want to send. * @see https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/8c6yea83%28v%3dvs.84%29#arguments */ SendKeys(s: string): void; }