Skip to main content




RECOMMENDED: Click here to fix Windows errors and get the most out of your system performance

CSScript and WScript are executable files for the script host that are used to run the scripts. CSScript and WScript are interpreters for running VBScript (and other scripting languages like JScript) on the Windows platform.

cscript-exe-6186267

What is Cscript.exe?

On Windows, an executable file is a console application or a Windows application (or an SFU or a native application, but that doesn't matter here).

The kernel checks a flag in the executable to establish which one.

If the kernel creates a console window when the CreateProcess WinAPI function is started, if it is a console application, it creates a console window if the main procedure does not have one and adds the STDIN, STDOUT, and STDERR streams to the console.

If it is a Windows application, no console is created and STDIN, STDOUT and STDERR are closed by default.

WSCRIPT.EXE and CSCRIPT.EXE are almost identical except that one is marked as a Windows application and the other as a console application (guess which way!).

So the solution is: if you want your script to have a console window, use CSCRIPT.EXE. If you do not want there to be a console window, use WSCRIPT.EXE.

This also affects some behaviors, such as the WScript.Echo command. In a CSCRIPT.EXE, this writes a line to the console window. In WSCRIPT.EXE, it displays a message box.

El archivo cscript.exe original es un componente de software del host de secuencias de comandos de Windows de Microsoft.
El host de secuencias de comandos basado en consola es un host de secuencias de comandos de Windows. Cscript.exe es un archivo que ejecuta scripts desde la línea de comandos. Esto no es una amenaza para su ordenador.

The Windows console-based script host creates command-line options to set script properties. With this command line, users can run scripts by basically typing their name on the command line. It is a native component of the Windows operating system and is part of the Windows Script Host module. It was first available under Windows 95, but is now the default component of all versions of the Windows operating system. Windows Console Based Script Host supports many Active Scripting language engines and installs automatically with Internet Explorer 5 or later.

taskmanager-cscript-exe-6738931

Is cscript.exe malicious?

cscript.exe has not yet received a security clearance. The cscript.exe file should be located in the C: Windows System32 folder. Otherwise, it could be a Trojan horse.

Can I stop or delete cscript.exe?

Many running non-system processes can be stopped because they are not involved in the execution of your operating system. cscript.exe is used by Microsoft(r) Windows Script Host. It is an application created by Microsoft Corporation.

If you no longer use Microsoft (r) Windows Script Host, you can permanently delete this software and therefore cscript.exe from your computer. Press Windows + R simultaneously and enter 'appwiz.cpl'. Then find Microsoft (r) Windows Script Host in the list of installed programs and uninstall this application.

https://stackoverflow.com/questions/8678441/difference-between-wscript-and-cscript

RECOMMENDED: Click here to fix Windows errors and get the most out of your system performance