Difference between WScript and CScript

C

capt edgar

Hi there

what is the difference between WScript and a CScript language.
Where can u find good tutorial for CScript on the internet.

I have tried googling it and it comes back saying Javascript arent
Javascript something for web development. i'm after window scripting

newbie here. please advice

regards
 
M

Martin Honnen

capt said:
what is the difference between WScript and a CScript language.

Is there anything like a "WScript language" or a "CScript language"? I
don't think so.

Windows Script Host has two command line apps, one called "wscript", one
called "cscript". Both allow you to run programs in JScript or VBScript
or other active scripting language implementations, the only difference
being that stuff like
WScript.Echo("foo");
when executed with "wscript" (e.g. wscript file.js) displays a dialog
window whilst the same execution with "cscript" (cscript file.js) writes
to the console window you are running the command in.

See http://msdn.microsoft.com/en-us/library/xazzc41b(VS.85).aspx, which
says:
"The WScript command opens separate windows for output, whereas the
CScript command sends output to the Command Prompt window from which it
was initiated."
 
T

Thomas 'PointedEars' Lahn

capt edgar wrote:
^^^^^^^^^^
Who?
what is the difference between WScript and a CScript language.

Those are _not_ different programming languages, see below.
Where can u find good tutorial for CScript on the internet.

You could start with checking the vendor's Web site,
I have tried googling it and it comes back saying Javascript arent
Javascript something for web development.

You are not making sense. When I search with Google for "wscript cscript",
the first result is
<http://msdn.microsoft.com/en-us/library/xazzc41b(VS.85).aspx>
which says what both are and what is the difference between them:

| Running Scripts from Windows or a Command Prompt
|
| Windows Script Host enables you to run scripts from Windows or at a
| command prompt.
|
| Script Hosts
|
| The WScript command opens separate windows for output, whereas the
| CScript command sends output to the Command Prompt window from which
| it was initiated.
i'm after window scripting

Did you mean _Windows_?
newbie here. please advice

Please read <http://jibbering.com/faq/#posting> pp., including
<http://www.catb.org/~esr/faqs/smart-questions.html>.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top